Under rating threshold (hideshow)
when i name the ship instance ship (as per page 2) everything stops working my enemies stop appearing my ship wont move or shoot the only thing that works is the background. is this normal?
Under rating threshold (hideshow)
I have an EnemyMissile movie clip and I've checked and rechecked the code but my enemies aren't firing. I'm using MX 2004, if it matters...
Under rating threshold (hideshow)
Ah yes thanks, I took a capital off of it, and now it works. (Odd, I made the symbols Identifyer in capital though...).
Under rating threshold (hideshow)
I have the same problem as Tusk, everything is fine, no errors, but something in my code is making 100000's of enemies spawn. Help anyone?
Under rating threshold (hideshow)
I'd like some help here. My enemies arent being destroyed. I'm at step 4 and double-checked the capitals and stuff. Any1 got some advice?
Under rating threshold (hideshow)
I have a problem, that there're a lots of enemy ships. They invading the whole right screen then they're moving to right. I tried to replace the whole .as files one-by-one but nothing changed :/
Under rating threshold (hideshow)
I finished step #4, but instead of my enemies flying and being destroyed on touch, my character won't move and the enemies won't spawn! What happened?
Under rating threshold (hideshow)
Maybe you didnt tell the enemy ship to run the explosion function when it hits, or maybe the missile is so small your missing, or maybe you never put the collision detectin code in
Under rating threshold (hideshow)
just found out something...the text that we are able to copy on page 13 has Math.random()*300 which is not Math.random()*250+50 which was what they adviced us to use
Under rating threshold (hideshow)
if it helps this only happens when i shoot... the enemies can shoot, i can crash into them, the explosion happens, i can move but as soon as i shoot it comes up with that errror...
Under rating threshold (hideshow)
Please help...
whenever i shoot a ship i get an error saying
256 levels of recursion were exceeded in one action list.
This is probably an infinite loop.
Further execution of actions has been disabled in this movie.
please help... :S
Under rating threshold (hideshow)
The code as-is has a bit of a memory leak. Since you put the enemy ships into the enemies array, but never take them out after they're destroyed, the enemies array gets larger and larger.
The way to remedy this: when removing an enemy ship within the EnemyShip class, insert the following code:
for (var i=0; i < enemies.length; i++) {
if (this == enemies[i]) {
enemies.splice(i,1);
break;
}
}
This will find where in the array the particular enemy ship is and remove it.
Under rating threshold (hideshow)
Great Tutorial again! 5/5 But the missing step of adding the EnemyMissile Movie Clip does through people off (Thanks guys for mentioning it in the comments.) When you get to step 11 Create another another Movie Clip called EnemyMissile just like you created the Missile Clip in a previous tutorial and the enemies will shoot.
Under rating threshold (hideshow)
My movie is not working properly, after shooting a ship the explosion appears, but won't go away. The thin air keeps exploding :O
Under rating threshold (hideshow)
To add the EnemyMissile clip to the library:
1. Right click the Missile object in the library and choose Copy.
2. Right click the Missile object in the library, choose Rename, and call it EnemyMissile.
3. Right click anywhere in the library and choose Paste.
4. Right click the EnemyMissile object and choose Linkage.
5. Rename the Class and Identifier to EnemyMissile and click OK.
Under rating threshold (hideshow)
Finally it's out. I love these things. I'm gonna upload mine for the contest. Also, just because it's about to get pushed off the page:
Echoing a concern: askovitch Developer_icon Levelbug21 Oct. 28, 2008 YOU MISSED A STEP OUT!! you need to make an EnemyMissile movieclip first. for everyone who is stuck here, download the source thingy, go into library and find EnemyMissile movieclip. copy it like with the explosion clip and paste into your library.
Under rating threshold (hideshow)
wonder when you show those noobs that spam this page with stupid "games/animations" how to put their clothes on and brush their theeth...
Under rating threshold (hideshow)
Echoing a concern:
askovitch Developer_icon Levelbug21 Oct. 28, 2008
YOU MISSED A STEP OUT!! you need to make an EnemyMissile movieclip first. for everyone who is stuck here, download the source thingy, go into library and find EnemyMissile movieclip. copy it like with the explosion clip and paste into your library.
Under rating threshold (hideshow)
YOU MISSED A STEP OUT!! you need to make an EnemyMissile movieclip first. for everyone who is stuck here, download the source thingy, go into library and find EnemyMissile movieclip. copy it like with the explosion clip and paste into your library. please fix soon kongregate as this will be the shootorial with the lowest rating and lots of flaming!!!