Time reinitializes at level Gamesalad
Hello,
in my game, There are stages with TIMER,
Once the time reaches 0, the stage will end with the message "Finish"
and returns at a scene of "Result Score", then choose "try again".
My problem, after "try again", I returned to the scene, but I can not play, and after 2 seconds, the game returns to the scene "Result Score"
because the timer is at 0 after my second passage in the scene.
Which I had condition an "once time reaches 0, the stage will end with the message" Finish "
and returns at a scene of "Result Score."
HOW TO REPLAY THE SCENE WITH THE TIME initializes without leaving the game, Of course?
in my game, There are stages with TIMER,
Once the time reaches 0, the stage will end with the message "Finish"
and returns at a scene of "Result Score", then choose "try again".
My problem, after "try again", I returned to the scene, but I can not play, and after 2 seconds, the game returns to the scene "Result Score"
because the timer is at 0 after my second passage in the scene.
Which I had condition an "once time reaches 0, the stage will end with the message" Finish "
and returns at a scene of "Result Score."
HOW TO REPLAY THE SCENE WITH THE TIME initializes without leaving the game, Of course?
Comments
Additionally, make sure any other attributes that need reseting are put in this button - such as your 'score' for example.
QS
Once on the scene rest the counter at 0, and is not reset.
"Reset Game", I do not want
and "Reset Scene" resettable the scene "complete level" but I want to start "level 1" with counter eg 40 seconds.
Do you have an idea my solution?
When you press the button to change scene, immediately before the change scene behaviour you should put in a change attribute behaviour that changes the timer to its original value.
Cheers,
QS
Did you ever try for one of your games, if not try to see.
Give me news if you already try.
I have that in my scenes and its working perfectly.
Example:
when replay pushed
change attribute.timer to 25