How to resume a game for a pause menu Help please

PixeliciousPixelicious Member Posts: 7
edited November -1 in Working with GS (Mac)
Hello everyone. I have been working on my first iPhone/ipad game for the past two weeks now and i am currently at the stage of creating a pause menu. Now to give you insight in how did it, here are my working out:

I created a boolean called pause and then in my level I have an actor that triggers code like reset and level completion. In that i have a rule that says when game.pause is true some actors are spawn on the scene. those are the buttons like reset and resume and back to menu. Back to menu and reset work but resume doesn't.

In the resume button i have made a rule when touched change attribute to false

Am i doing something wrong, any solutions?

Comments

  • BreckenBrecken Member Posts: 143
    Well as I see it you can do it the way you pictured. But there is a different way, wich is much easier, but than it will ofcourse be that daamn loading time GS have.

    Have an actor wich is your pause button on the playgame screen.

    When touch is pressed
    Pause Game

    you will than need to select wich scene it will pause on. So you have to create your own pause scene. Their you also need to have a button wich says:

    When touch is pressed
    Unpause game.

    This method is the most common, but many tries to have all in one scene wich will prevent the loading time.

    PL
Sign In or Register to comment.