Help resetting during pause and moving between scenes

NesesitaGamesNesesitaGames Member Posts: 160
edited November -1 in Working with GS (Mac)
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 :)

Comments

  • AjBlueAjBlue Member Posts: 215
    have you tried hooking up a boolean to the pause menu, and when you press the pause button, making it change attribute>boolean>true. then on pausemenu, if boolean=true, show pausemenu. then when you click the mainmenu button to go to the mainscreen, add a change attribute to the rule, saying when mainmenu button is pressed, boolean = false?
  • NesesitaGamesNesesitaGames Member Posts: 160
    Thanks, AjBlue! Here's what I've done so far... and my CONTINUE button isn't working properly either! driving me a little batty:

    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?
  • AjBlueAjBlue Member Posts: 215
    why do you have two game paused to false behaviors?
  • NesesitaGamesNesesitaGames Member Posts: 160
    Thanks, AjBlue- and I was mistaken, I didn't have two of those... am just lacking sleep :)

    Okay, my unpause is working now nicely now. Thanks!
Sign In or Register to comment.