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.
Under rating threshold (hideshow)
I don't know how significant or problematic this is, but, both in my flash and in this tutorial pressing the up + left keys with the spacebar is a no-no. Any way to fix that?
Great tutorials by the way!
Under rating threshold (hideshow)
i need some help, when i enter the coding in the ship class it tells me that, enemyTimer += 1; and if(enemyTimer > 60) are not permitted in class definition??? how do i fix this?!?!?!?!?!?!
Under rating threshold (hideshow)
i need some help, when i enter the coding in the ship class it tells me that, enemyTime += 1; and if(enemyTimer > 60) are not permitted in class definition??? how do i fix this?!?!?!?!?!?!
Under rating threshold (hideshow)
ignore anticipatient, he thinks you mean do it somewhere else instead of the enemy ship class, you was asking about putting the enemy ship timer in a class other than ship, and as i said, its not possible without adding a shitload of code
Under rating threshold (hideshow)
blind, you can make another class, but you have to make sure everything that would reference the enemyship now references your new class instead. ie, replace "enemyship" with "[newclass]."
Under rating threshold (hideshow)
it 100% NEEDS to be on the ship class.
enemyTimer needs to be in onLoad and onEnterFrame in the ship class because var enemyTimer; is there
Under rating threshold (hideshow)
Does the enemy ship timer ect. NEED to be on the ship class? Or can I create another class, cause I'm creating a different kind of game, following the instructions?
Under rating threshold (hideshow)
if anyone here knows what those weird prancing green things are on stickfigures on crack are, look for my game in maybe a couple days, if that, and check out my game!
Under rating threshold (hideshow)
Also, if you think there's an error, make sure you've saved your scripts: The SWF won't read them unless changes have been saved. Also, the Undo button works even if you've saved, so you don't have to worry.
Under rating threshold (hideshow)
always before starting to try the shootorial a create a folder named backup an i create a copy of my atual game there, so if it doesn't works i can try again
Under rating threshold (hideshow)
there are NO errors, but it is VERY easy to make a mistake somewhere that makes the whole game grind to a halt, if in doubt, rewrite the last page of code
Under rating threshold (hideshow)
Hey ive got my enemy ships running fine but how my ship is bouncing up and down the page i can still move it but it just keeps bouncing anyone know the solution?
Under rating threshold (hideshow)
"No, this shootorial, unlike the other, does have errors. ", that statement is FALSE, i just completed it very easily and have had NO PROBLEMS creating my uber new game, "PewPew Space Shooter", il be uploading it later or tommorow
Under rating threshold (hideshow)
Wow, i wrote something, and my whole game stopped working, and it turns out I didn't have the H capitalized in NextHighestDepth.... goes to show just how much you can't screw up.!