Explode Enemy with hitTest

Set the x,y Position

We'll need to create a MovieClip instance name we can reference in order to modify any of the new explosion's properties. I'll call this instance ex:

Set the X and Y position of ex equal to the X and Y position of enemy:

And now is the perfect time to increment the exCount variable so any new copies of explosion won't replace the current one:

Test it out..... we're getting closer:

Content on this page requires a newer version of Adobe Flash Player.

Get Adobe Flash player