pause screen

hi , in my game i want when press** (pause button) ** go to (pause screen ) , and in (pause screen 2 button )
1 - Unpause
2 - reset scene

,i add code unpause screen to button reset scene

but when press reset scene it repeat pause screen
can (reset scene ) from pause screen ?

Comments

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949

    In an actor on your pause scene:

    When touch is pressed
         Change attribute game.reset to true
         Unpause Game

    In an actor on your initial scene
         
    When attribute game.reset is true
         Reset Scene

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949

    Keep in mind that resetting a scene does NOT reset game attribute values. So for things like game.reset and other game attributes, you need to manually set their values back to what they started at after you reset the scene.

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • gatrifgatrif Member Posts: 60

    @tatiang I did that but it's repeat scene and pause screen and unpause** Endless **

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949

    Try this. Click the spinning actor to pause. Click anywhere to unpause.

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • gatrifgatrif Member Posts: 60
    edited November 2017

    @tatiang it just unpause** not reset** , my game platformer , and reset scene must reset life ,coins , etc ... your examle just unpause , thank u very much by the way

  • gatrifgatrif Member Posts: 60
    edited November 2017

    @tatiang I chnaged timer to** (run to completion)**
    and moved timer up
    and another rule (game.reset) to down >:)
    and now it work!!
    thank you very very much bro ;)

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949

    You're welcome!

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

Sign In or Register to comment.