Hi,
I’m in the finishing stages of a shoot 'em up game where you shoot down attacking aircraft & have info about the shell used to hit the plane displayed on the stage, info such as which plane it hit, time in flight etc.
The problem.
If you try out the game (link HERE) you will find that a plane hit along way out, although apparently removed from the stage through code, still persists on the screen. If you project the space where the hit plane will be had it not been hit & fire into that space, the now invisible plane will still cause the hit detection script to fire?
A hit plane goes through a short tween to indicate the fact it has been hit & at the end of this tween is a final frame with the code.
stop();
this.removeMovieClip();
Although from what I can see the clip is removed, it is as if it still remains in code.
With relation to the code I have a script that stops calling the onEnterFrame event that effectively moves the plane so I don’t think the problem is to do with Flash reading the code position of the plane (not the physical clip) & acting on that. One thing that I have noticed is that if you set the “Plane Hit” text field that shows up with the shell info to “typeof” it shows movie clip for the invisible item.
Please let me know if you would like to see the fla as it is over 72KB I will mail you.
Thanks