Search Tutorials
2. Making the enemies: gotoAndPlay("start1"); This is so it would loop the killing. The frame after he shoots, animate him dying. on the first frame of him dying, name the frame "dead". On the last frame, put this action in: stop(); This is so it wont loop. Also if you want him to come stabbing you again, dont put that action in. Ok, now make a new layer. make this the top layer. copy & paste the "thing you shoot" onto the top layer. do not delete the "thing you shoot" at all. on the top layer, convert the other "thing you shoot" to a button. in the button, dont have anything in the "up" frame, "over" frame, or the "down" frame. Just have the body in the "hit" frame. get out of the buttons properties, and give the button this action: on (press) { NOTE: dont have this button on the frame when he dies.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|