pausing

ovechkin8ovechkin8 Member Posts: 42
edited November -1 in Working with GS (Mac)
is pausing your game possible. Such as if i have a menu button in the corner and the player taps it can it pause everything not just music?

Any help would be great...
Thanks

Comments

  • rebumprebump Member Posts: 1,058
    Yes but it appears to be broken, according to others' posts, in the 0.8.x version of GS. It was working in my 0.7.0 but I had removed it prior to upgrading so I haven't tested myself.
  • dereklaruedereklarue Member Posts: 121
    There are two ways of doing this that i would do.
    A.) Switch to a different room and do a preserve scene. (Only Problem with this is the preserve scene seems to be broken atm.)
    B.) Add an attribute (call it pause or something around there) and use it in each actor in the game.
    Check the wiki for tutorials, heres one on pausing:
    http://gamesalad.com/wiki/how_tos:gsc_game_pause_tutorial
    Hope this helps!
  • CodeMonkeyCodeMonkey Head Chef, Member, PRO Posts: 1,803
    Use B). But also, if you have actors in motion, store the linear velocity X/Y in attributes, and stop the actor's movement in pause. When it is unpaused, change the linear velocity X/Y back to the saved values.
Sign In or Register to comment.