Step 12 : Reseting the timer so you can play again:
On your final page the congratulations page, you will need to add abutton that will reutrn you to the first page so you can play again. Create a new button and call it back on this button add the following code
On (Release) Go to and Play (1) End OnThis will return you to the first page, however if you try to play again you will find that it will automatically take you to the final `Congratulations` page as the Timer is still less than 1, you therefore have to set the timer back to 200. On the first keyframe on the button you are using to begin the game, you have to add the following code.
On (Release) Set Variable: "total" = 0 Set Variable: "miss_total" = 0 Set Variable: "Timer" = 200 End OnThis code sets the Timer back to 200 so you can play over and over again. And sets the total back to 0, and the miss_total to 0 so you can play again and you will refresh the whole page.
|» Level Intermediate|
Rating: 8 Votes: 51
|No details available.|
|Download the files used in this tutorial.|
|Download (650 kb)|
|More help? Search our boards for quick answers!|