Well, instead of nesting the whole thing in an if statement, only have:
in your newObject function. You might get a case where one more enemy spawns...PHP Code:if (!alive)
setNextObject();
What I'd recommend doing is:
Put this in the if statement when health is zero. (Place this where you wrote:Code:nextObject.removeEventListener( TimerEvent.TIMER_COMPLETE, newObject);
THIS IS WHERE I WANT IT TO GO TO NEXT FRAME AND STOP THE CODE FROM RUNNING.)
P.




Reply With Quote
