0 LIKES LikeUnLike
this is my code so far: onClipEvent (enterFrame) { if (_root.player.hitTest(enemy)) { _root.player.play() }}as you can see my player is called player and enemy enemyi have stopped the first frame of the player and i want it to play the rest of the frames to show the explosioni have flash 8this code is in the playerall the code for the player is:onClipEvent (enterFrame) { if (Key.isDown(Key.UP)) { _y -= 15; _rotation = -10; }}onClipEvent (enterFrame) { if (Key.isDown(Key.DOWN)) { _y -= -15; _rotation = 10; }}onClipEvent (enterFrame) { if (Key.isDown(Key.LEFT)) { _x -= 15; _rotation = 0; }}onClipEvent (enterFrame) { if (Key.isDown(Key.RIGHT)) { _x -= -15; _rotation = 0; }}onClipEvent (enterFrame) { if (_root.player.hitTest(enemy)) { _root.player.play() }}i have also coded the first frame of "player" to:stop();
Tags:
Report (0) (0) | earlier
Latest activity: earlier. This question has 1 answers.