Under rating threshold (hideshow)
i haven't worked with flash, but i see that in this tutorial you create an enemy array and add enemies to it as they're created, but they're not removed from the array when they're destroyed. does flash take care of that itself or doesn't that just waste iterations in your loop and create a memory leak?
Under rating threshold (hideshow)
I can't get the initial collision detection to work. I've checked caps and location of everything.
Also when I try to open the .fla I get an error saying exception throw in native function. Any ideas anyone?
Under rating threshold (hideshow)
Cloud Cavilier, name it something else. I named mine ship and it all froze up, so now it's called panda and it works fine. I think because ship is an identifier, it hates it. Something like that
Under rating threshold (hideshow)
OK... I have double-checked basically everything, but once I add the instance name 'ship' my game stops working entirely. Help?
Under rating threshold (hideshow)
Are you sure that the script is in the right place? Mine wasn't working becuase I had my ordering wrong and when I changed it worked fine.
Under rating threshold (hideshow)
This is getting on my nerves.
The collision detection wont work!!
Ive checked the script over and over again. There is no mistakes.
Plz help!!!
Under rating threshold (hideshow)
Here is a nice little feature I picked up from C++. put this in your ship class. if(_x>600) *new line* { *new line* _x=600 *new line* } Also include the same thing for x300. This will stop the hero ship from leaving the screen.
Under rating threshold (hideshow)
anyone what i could have possibly done wrong?? I have done everything right in the sootorials up to #4. THats where my problems begin. Some error occurs say "class or interface 'EnemyShip' cannot be loaded." Then it appears on the top left corner of the test window, and just stays there. ANy idea... any one??
Under rating threshold (hideshow)
For those who are having a horde of enemy ships invading their screen, do the following:
enemyTimer = 0;
var enemy = _root.attachMovie("EnemyShip", "EnemyShip" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
enemies.push(enemy);
this is the 3 last command lines in the ship.as
add the " enemyTimer = 0;" on the top and it should work :)
Under rating threshold (hideshow)
can some1 help every few ship my missiles dont destroy them they destroy most but there are some that they dont?Did i mess up a variable or somethgin? PLz help
Under rating threshold (hideshow)
to everyone who gets their ship to stop moving when they give it the root ship thing make sure you dont give it a capital
also i seem to have no explosion file?
Under rating threshold (hideshow)
I am having problems when I add the instance name to the 'hero ship' after I change that the ship won't move with the arrows and enemy ships will not come either....any idea what i'm doing?
Under rating threshold (hideshow)
only one problem for me... everything works great, the enemies explode when I hit them, but in mine fore some reason, 2 enemies appear at the same time every 2 seconds and only one of them explodes when my missle hits them, but they both explode when my ship hits them, anyone know what's wrong?
Under rating threshold (hideshow)
Just to give a bit more info to go with my last comment: My Missiles are flying right through the enemy ships. No colision at all. The only thing that hits them is me. Also I have checked and rechecked all of my spelling and went back through the entire Shootorial to check my code. Line by line I followed what it said to see if I did it correctly and I have. What am I missing here?
Under rating threshold (hideshow)
When you finish step 10, should you be able to do a test movie and explode the enemy ships with your own missiles?
Everything runs fine, but the enemies are not exploding when I hit them with a missile. They only explode when my ship touches them.
Under rating threshold (hideshow)
Ok, now I'm having trouble with the enemy missles. They are flying like 200 pixels below the enemies, and if I get even 100 pixels close to them, on any side, it destroys them and makes the enemy explode. Why is this?
Under rating threshold (hideshow)
I'm having trouble getting explode() working properly. For some reason the line "this.removeMovieClip();" does not work for me.
The function is being called though, I added a trace function in there, and that's working just fine, so it's with removing the MC.
Is anyone else having this trouble?
Under rating threshold (hideshow)
@Hoagy select the movieclip and across the bottom of the library there is a circle with an 'i' in it, it brings up the properties menu.
Under rating threshold (hideshow)
I just completed part 9 and when i tested the movie it comes up saying that more than 256 levels of recursion were exceeded on one action list
Under rating threshold (hideshow)
Sorry i was being silly and it is in SH_05 and in the library in that fla.
Double check there if anyone else is having trouble.
Under rating threshold (hideshow)
I have the same problem as andyyoyeryea.
The download does not contain the explosion art?
Please can someone help me? Thanks
Under rating threshold (hideshow)
master54100 and DrPerson:
you have to change the names so the class Ship is different from the instance ship (capital letter and not)