I am making a simple flash game. How would I make the user to go the next scene when the zombie is clicked?
Asked
Active
Viewed 68 times
-2
-
asking for code, nothing to show for, voted down. – BotMaster Nov 12 '14 at 18:32
-
You confirm what I said and show a very low level of language. This question should be removed shortly. – BotMaster Nov 12 '14 at 18:38
-
1What have you tried? All that should be required is a click listener that calls `nextScene()` – BadFeelingAboutThis Nov 12 '14 at 19:22
-
I don't get how this is not enough to get help.... I clearly said "When I click the zombie it goes to the next scene" how much more information do you need? – MatthewTheMan2 Nov 13 '14 at 17:43
1 Answers
1
Create a symbol out of the zombie, call it whatever you want. Then write this code:
yourZombieName.addEventListener(MouseEvent.CLICK, clickZombie);
function clickZombie(evt:MouseEvent):void {
gotoAndStop(1, "yourSceneName");
}

helloflash
- 2,457
- 2
- 15
- 19

Skalk
- 53
- 1
- 1
- 9