Pause Menu?

cobras61cobras61 Member Posts: 41
edited December 2011 in Working with GS (Mac)
How Can i make a pause menu pop up during the game but not a different scene?

Comments

  • CloudsClouds Member Posts: 1,599
    What would cause the pause menu to pop up ?
  • deej011deej011 Member Posts: 159
    Hi I had the same question the best answer I found was put the pause menu on the screen set the opacity to 0 and when u press the pause button make that change the opacity of the pause menu to 1
  • cobras61cobras61 Member Posts: 41
    ??
  • MBYMBY Member Posts: 74
    edited December 2011
    What he means is:
    Rule when touch (of the pause button) is released
    Change attribute self.color.alpha to 1
    Pause game
    Otherwise:
    Change attribute self.color.alpha to 0
    Unpause game

    I hope it helps.
  • cobras61cobras61 Member Posts: 41
    pause and unpause on the same button?
  • MBYMBY Member Posts: 74
    unpause when you touch the button you want to make it unpause
  • cobras61cobras61 Member Posts: 41
    can i make it be the same button?
  • MBYMBY Member Posts: 74
    edited December 2011
    Yes, but then I'll make it like this:
    Rule: when touch is released
    change attribute (an attribute boolean of the game) game.yourattribute to true

    Rule: attribute game.yourattribute is true
    Rule: touch is released
    change attribute game.yourattribute to false
    unpause game

    IN YOUR POP UP MENU:

    Rule: attribute game.yourattribute is true
    change attribute: self.color.alpha to 1
    pause game
    otherwise:
    change attribute: self.color.alpha to 0

    If it doesn't work please let me know.
  • cobras61cobras61 Member Posts: 41
    i don't have a pop up menu
  • calvin9403calvin9403 Member Posts: 3,186
    what? you said you have a pop up menu and now you don't?
  • cobras61cobras61 Member Posts: 41
    "How Can i make a pause menu pop up during the game but not a different scene?"
  • cobras61cobras61 Member Posts: 41
    Pause a gam with just one button in a Scene
  • calvin9403calvin9403 Member Posts: 3,186
    when touch is press pause the game and show the actor or make the actor there and turn it;s alpha to 0 and change the alpha
  • MBYMBY Member Posts: 74
    Then:
    Rule:
    touch is released
    attribute game.yourattribute = false
    pause game
    change attribute game.yourattribute to true


    Rule:
    touch is released
    attribute game.yourattribute = true
    unpause game
    change attribute game.yourattribute to false

    Well I think because I don't really understand what you want.
Sign In or Register to comment.