Under rating threshold (hideshow)
-_-; i dont know why but my enemy ship always spawns top left. and an error "Symbol=EnemyShip, layer=Layer 1, frame=1, Line 1 The class or interface 'EnemyShip' could not be loaded."
im running CS5.5 on a windows vista.
Under rating threshold (hideshow)
If you had the same problem as me, copying the code exactly from the screenshot only to have it result with no enemy ships and no control over your own ship, add an extra '{' bracket to the bottom of the code.
Under rating threshold (hideshow)
Does anyone know why I keep getting an error message whewn I try to publish it? It says The class or interface 'EnemyShip' could not be loaded..
Under rating threshold (hideshow)
Forget my other comment. Just go to library, click on "EnemyShip" (should already be there) and delete it. Hope it helps
Under rating threshold (hideshow)
I had this problem when I went to convert the first ship to symbol, but it fixed itself. Now when I try and convert EnemyShip to movie clip it says "The name 'EnemyShip' is already taken. Please choose a different name." Help?
Under rating threshold (hideshow)
If you don't name the enemy ships EnemyShip, where it puts _root.attachMovie("EnemyShip",etc change EnemyShip by the name of your current enemy ships.
For example if the enemy ship is called AlienShip, you must put _root.attachMovie("AlienShip", etc). Maybe thats the problem that makes the enemies not appearing.
Under rating threshold (hideshow)
this is not a great game and i know why because the graphics and the pictures quality are verrry looooooooooooowwwwwwwwwwwwww
Under rating threshold (hideshow)
this is a good time to "what happens if i do this?" hence not following all the exact codes, in order to further understand what we are really doing, really this is a good tutorial... really good! 5/5
Under rating threshold (hideshow)
*If the Enemy ship disappears after 2 seconds* I had a typo in getNextHighestDepth. So it didn't read that it should assign a new number to each one and was generating the same one over and over again (i.e. deleting it every 60 frames and regenerating it on the left side of the screen).
Under rating threshold (hideshow)
At first I didn't know where to paste the _y = Math.random()*200 + 50; bit so I put it in the Ship.as... big mistake every time an enemy ship spawned it would teleport my ship to random parts of the screen.
Thankfully I found it now :P
Under rating threshold (hideshow)
NOTE: DOn't forget to save your projects FREQUENTLY-- After EVERY change. Otherwise you'll never get the stuff working when you test! LOL O.o
Under rating threshold (hideshow)
If the enemyship dissapears after 2 seconds, go to the ship script and change the "if(enemyTimer > 60)" to "if(enemyTimer > 120)"
Under rating threshold (hideshow)
For any developers out there I praise you, because you have to deal with this crap. I've done this only for a couple hours and I want to beat the hell out of whoever came up with the case sensitive idea. 1 hour just to change my "e" to "E". But it's worth it :)
Under rating threshold (hideshow)
yeah... this sucks you have to like download and its not even good when you HAVE DOWLOADED so what do you think? and there comes VIRUSES when you download this game. So this is my favourite game ... ):
Under rating threshold (hideshow)
add comments to your code so you can remember what you learned
like this:
// comment
or
/*
comments
comets
comments
*/
Under rating threshold (hideshow)
nvm, fixed it but, what if i want to add different enemies, but dnt want them to come out at the same time, i want the enemy timer to add either the enemy ships or the other enemy, how i do that?
Under rating threshold (hideshow)
hey guys im getting this error: This statement is not permitted in a class definition. for this source:if(enemyTimer > 60)
and the same error for this source:enemyTimer += 1;
plz help, wat should i do? i followed the instructions from the tut exactly, copy and paste... :)
Under rating threshold (hideshow)
typo on page 2 ?? last sentance "but we dont need ay enemy ships on stage..." hopefully have my own game done in a few months .. i doing a game development course at college too xD
Under rating threshold (hideshow)
check your background.It may ALSO have the instance name"ship" or "Ship" if it does, then remove it.Took me a long time to figure out:P
Under rating threshold (hideshow)
if i wanted to have multiple enemies, types so to speak, would i have to basicly copy these lines with the class names different like enemyship2 or what not
Under rating threshold (hideshow)
For those who seem to have correctly copied the code, but have errors:
Perhaps you are missing one of these: ; { } ( ) Or perhaps you have put parts of code in the wrong place.
Remember: Computers are the most stupid things you could possibly "talk to". If you don't "speak" their language perfectly flawless, they will not understand you.
Under rating threshold (hideshow)
For those of you who are trying to do this in AS3, I advise you make destructor methods, and even consider making an abstract parent class that handles all of your necessary parameters automatically (speed, registering EnterFrame, a generic destructor method). Also, if you are having trouble with a ship always appearing in the begining, that is because you didn't delete the enemy ship from the first frame. This was tough for me, because I couldn't find it behind my own ship.
Under rating threshold (hideshow)
I have all the codes right, as far as I know, but when I test it, the ships just appear in random places for a split second and disappear, it never stops... How do I fix this?
Under rating threshold (hideshow)
just can't get this to work. no matter what x and y coordinates i set the ship at, it appears in the upper left corner and stays put. on on cs5
Under rating threshold (hideshow)
enemyTimer += 1;
if ( enemyTimer > 60) {
enemyTimer = 0;
_root.attachMovie("EnemyShip", "EnemyShip"+_root.getNextHighestDepth(), _root.getNextHighestDepth());
}
i cant get my ships to come....
Under rating threshold (hideshow)
I know a lot of people have said this already but, i cannot get enemy ships to appear. the only way i have gotten it to work is by placing one on the stage. I have checked the code several times, i have deleted and remade the enemy ships movieclip several times, and it still doesn't work please pm me with an answer if you have one.
Under rating threshold (hideshow)
If you want to make it so that the furthest up/down is only just touching the edge, try "_y = Math.random()*264 + 18;".