removeSelf and transitions

I have some enemy objects which fire weapons on timers. The weapons are fired while the enemy objects are moving with transition.to.

I am experiencing a problem where if the enemies are destroyed, the weapons are still fired. Whats more strange, is that the weapons are set to fire from the enemies x and y and after they are destroyed the weapons are fired from the x and y where the enemy would be during the transition if they weren't destroyed.

I am using transition.to for all of the movement, timers to activated the weapon firing, and removeSelf() for when the enemy is destroyed by the player.

Has anyone else ran into this issue, or have an idea for a solution?

It could be easier to diagnose the problem if you posted your code.

Regards,
Jordan Schuetz
Ninja Pig Studios

|

views:1521 update:2011/11/26 9:01:35
corona forums © 2003-2011