Pause/Reset/Return to main
Hello guys, Is there a video out there or info on how to make a Pause menu for a current scene that will let you reset the scene, return to main menu etc- i have been trying some different things with no luck
Best Answer
-
lukey5227 Posts: 111
yes i was doing the same thing- I got the pause thing down its more the rest scene and that the score and stuff all go back to 0 if if i hit a retry button on the same scene
Are you saying you DO want it to go to 0 or you DON'T want it to go to 0? Either way, I'll explain both.
If you WANT it to reset, drag in the "Reset Scene" behavior. This should reset everything on the scene to how the scene started when you first started (all actors reset to their original value and position).
if you DON'T WANT the score to reset but want everything else to reset, you'll be forced for each object to make a "Reset X" and "Reset Y" attribute.
If (Game.Reset = true)
{Change Attribute "Game.Actor.Position.X" to "Reset X"
Change Attribute "Game.Actor.Position.Y" to "Reset Y"}
Once you do this, find someway to change "Game.Reset" to "false". Thats it!
Hope I could help!
Answers
Hope it helps.