Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: naktim0819 on March 05, 2013, 11:21:09 PM

Title: Hello I want to ask how can I pause all game
Post by: naktim0819 on March 05, 2013, 11:21:09 PM
Hello I want to ask how can I pause all game

maybe I need to make a option button when it press
my all game will pause  and I can go do some setup, then when I press back button

the game will resume .

and

my game hole use mobile orient ,so
when I not touch just shake the game
maybe 10sec  It wiil go sleep mode .
How can I stop it to go to  sleep mode


did playmaker can do this 2 thing?
Title: Re: Hello I want to ask how can I pause all game
Post by: KozTheBoss on March 06, 2013, 10:54:33 AM
Hi Naktim!

I can help you with the game pausing - if you make a GUI button and on-click go to a new state and in that state you put a scale time action (sorry dont remember the exact name of the action, but look under TIME) and you can scale time with it, so set it to 0 which will effectively pause the game.

Make a button aswell in that state and when that is clicked, you flow back into the first state and you set time scale back to 1

hope this helps :)

Koztheboss
Title: Re: Hello I want to ask how can I pause all game
Post by: naktim0819 on March 06, 2013, 10:11:21 PM
Thanks u! KozTheBoss
I'll  try it!!

Thx  u very much!!