Under rating threshold (hideshow)
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!1111111111
Under rating threshold (hideshow)
it wont let me make on :(!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Under rating threshold (hideshow)
I love it how it gives you chance to change things, i changed my ship to blue and all the background to coloured it was cool ^^
Under rating threshold (hideshow)
Kiki123987 The Error may be in the Ship file I think you didn't set ship EnemyTimer to 0. Without it you will only get one ship see following:
enemyTimer += 1;
if(enemyTimer > 60)
{
enemyTimer = 0;
_root.attachMovie("EnemyShip", "EnemyShip"+_root.getNextHighestDepth(), _root.getNextHighestDepth());
}
Under rating threshold (hideshow)
I followed everything it said and I have checked it all...
there only will be 1 enemy ship at the beginning of the game and then no other one will follow..?
Under rating threshold (hideshow)
Check for any missed out { or } they can affect the whle thing even if in a completley different location, I got those, turns out I missed an } at the very end of the script
Under rating threshold (hideshow)
I follow what it say, but i keep getting ActionScript 2.0 class scripts may only define class or interface constructs. for errors.
Help?
Under rating threshold (hideshow)
Here's a silly question: Why are missiles declared as variables (i.e. var missile = etc etc) and enemy ships simply attached to the root timeline? Oh yeah. 5 stars.
Under rating threshold (hideshow)
Vash - take the space out and try using EnemyShip instead of Enemy Ship, I don't think class names can have spaces. I know they can't in Java or JavaScript, and ActionScript looks a lot like them both.
Under rating threshold (hideshow)
Hey I got everything to work, but I still get an error it says; The class or interface 'Enemy Ship' could not be loaded.
The ships appear and I can shot, move, etc.
Under rating threshold (hideshow)
:S can't figure out how to solve this. the problem is.. everything works.. my custom enemy flies at random speeds everything like its supposed to.. but when i fly to it with my ship it goes over my ship instead of hitting my ship :S does anyone know how to fix this? i had the same problem with background going over ship.. but that was fixed easily..
Under rating threshold (hideshow)
ivynajs to make a top-down variation just go to the onLoad function and make _y= 400 and _X = Math.random()*700 and speed = math.random()*5 + 5
Under rating threshold (hideshow)
hmm. All my code is exactly the same as theirs, and all the things are saved properly (i checked), but now i cant move my ship, fire missiles and enemies wont spawn. any tips?
Under rating threshold (hideshow)
I just started picking up flash again after many years off since I last used it (Flash 3). This tutorial (and the subsequent 7 as well) are hands down the best programming tutorial i've EVER seen. In addition, as of March 5, 2009, I got all the tutorials to work exactly as advertised using CS4 so to those who are having troubles, try FOLLOWING THE DIRECTIONS. 5/5. Favorited. Terry S
Under rating threshold (hideshow)
Crap, scratch what I said in my first comment that starts with "Just a comment.." ! You have to check in your Ship.as code, not your EnemyShip.as code :P Sorry for the confusion there.
Under rating threshold (hideshow)
And the second thing is, if your enemies won't spawn, make sure the Class and Identifier are the same for the Enemy Ship as is your AS file name (it worked for me only in that way), so if your identifier and class for the enemy ship is EnemyShip1, try to label it EnemyShip1.as (or something of the like) to clear the problem up. Hopefully this works for you guys. Try checking for spelling or gramattical errors if this doesn't work, also! Every capital and lowercase symbol counts.
Under rating threshold (hideshow)
Just a comment for people getting stuck on here with ships not spawning. Two bits of advice that might help, because I was unable to find it in any comments. If your ships don't spawn like they should, check your "EnemyShip.as" code and see if your MovieClip has the same name as in the code. So for instance, if your movie clip was named EnemyShip1 and your code is set to _root.attachMovie("EnemyShip1", "EnemyShip" + _root.getNextHighestDepth(), _root.getNextHighestDepth()); it won't register it properly because it's trying to pull a nonexistent clip into the movie, thus causing an error.
Under rating threshold (hideshow)
thingman savethe actionscript file in the same folder than the rest of the game and make sure than you spell the class name right (the same way it's defined)
i guess that should fix it...
Under rating threshold (hideshow)
When I test my movie, the ship pops up in the upper left corner, half off screen, doesn't move, and only one shows up. I obviously messed up big time, but I don't know where.