Question on pausing

alexander144alexander144 Member Posts: 93
edited November -1 in Working with GS (Mac)
In my pause scene I want to have a button that will take the user back to the menu, will that work or will it overlap the older scenes?

Comments

  • sebmacflysebmacfly Member Posts: 1,018
    Hi,

    Don't know if that will work but you can try to add a rule with :
    ----When touch pressed (on your menu button)
    -- unpause
    -Timer, after 0.1sec, run to completion
    -- change scene to xxxxx

    Let me know...
  • ScootsScoots Member Posts: 507
    My understanding of the pause is that it actually lays a new scene over the current one so I don't see why you couldn't put a button to return to main menu. I haven't played with the pause yet so not 100% sure.
  • quantumsheepquantumsheep Member Posts: 8,188
    Scoots said:
    My understanding of the pause is that it actually lays a new scene over the current one so I don't see why you couldn't put a button to return to main menu. I haven't played with the pause yet so not 100% sure.

    Unfortunately it doesn't quite work like that - you cannot 'change scene' from within the pause scene.

    One way round it is to have a boolean variable that changes value when you return from a pause scene. So you could go to pause and return ok.

    However, if you're on the pause screen and want to go to the main menu, you'd press the main menu button, which unpauses and returns to the previous scene. Then you'd have a rule that changes the boolean and upon going back to the previous scene, automatically sends you to the main menu.

    Hope that made sense - not slept at all!

    QS :D

    Dr. Sam Beckett never returned home...
    Twitter: https://twitter.com/Quantum_Sheep
    Web: https://quantumsheep.itch.io

Sign In or Register to comment.