Help resetting during pause and moving between scenes
NesesitaGames
Member Posts: 160
Hi guys,
I'm having some trouble with this. Here's my set up:
When you click PAUSE during gameplay, I have a slideout menu with these options:
- Resume
- Sound Off / Sound On
- Main Menu Button
I've got Resume and Sound Off/On working fine, but when you Go to Main Menu then return to the Play Scene, everything is still Paused, and:
- Pause Slideout is still there
- Ball is caught in midair
- UnPause doesn't work
I set up a game.ResetAll attribute on an offscreen invisible Controller (integer), but when I tried adding a Change Attribute > game.ResetAll > 1 to my Main Menu Button, then return to the Scene from the Main Menu, it's still in that state.
Would appreciate any help / ideas? Thank you
I'm having some trouble with this. Here's my set up:
When you click PAUSE during gameplay, I have a slideout menu with these options:
- Resume
- Sound Off / Sound On
- Main Menu Button
I've got Resume and Sound Off/On working fine, but when you Go to Main Menu then return to the Play Scene, everything is still Paused, and:
- Pause Slideout is still there
- Ball is caught in midair
- UnPause doesn't work
I set up a game.ResetAll attribute on an offscreen invisible Controller (integer), but when I tried adding a Change Attribute > game.ResetAll > 1 to my Main Menu Button, then return to the Scene from the Main Menu, it's still in that state.
Would appreciate any help / ideas? Thank you
Comments
PAUSE Button:
If Pressed > Change game.Game_Paused to TRUE
SCENE CONTROLLER (off-screen, invisible instance):
If game.Game_Paused is TRUE >
: Freeze everything, and
: Slideout all menu buttons (using Interpolate), including CONTINUE Button
If game.Kill_Game_Menu is TRUE >
: Slide back all menu buttons
: Change game.Game_Paused to FALSE
CONTINUE Button:
If Pressed >
: Change game.Game_Paused to FALSE
: Change game.Kill_Pause_Menu to TRUE
It works properly the first time... but when I pause again, and continue again, my Kill_Game_Menu doesn't work.
Is my set up all wrong?
Okay, my unpause is working now nicely now. Thanks!