Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: polygon on October 22, 2014, 08:19:00 AM

Title: Pausing in Playmaker without Scaling Time to 0?
Post by: polygon on October 22, 2014, 08:19:00 AM
Hi Playmakers,

I encountered some problems by pausing the game by simply scaling the time to 0. Doing this works in some cases but scaling the time to 0 can cause strange behaviours in the following situations:

- GUI animations can't be played while the time scale = 0
- Resuming the game by setting the time scale back to 1 often applies very strong and unwanted forces to rigidbodies
- It's not possible to exclude objects / layers from the timescale (For example: excluding the layer "GUI" from the time scale to ensure that GUI elements still can be animated)

So I'm searching for alternative approaches to pause the game but I couldn't find a good solution so far. The only thing that I found was this blogpost here:

http://www.asteroidbase.com/devlog/9-pausing-without-pausing/ (http://www.asteroidbase.com/devlog/9-pausing-without-pausing/)

So would this be possible to do with playmaker? And the more important question: How? :D

Best regards,
Daniel
Title: Re: Pausing in Playmaker without Scaling Time to 0?
Post by: jess84 on October 22, 2014, 10:26:25 AM
I use Group Pause Kit from the asset store.

It's not supported anymore, but was easy to set up and was cheap. (you specific what objects / tags / layers you want paused, and which ones you don't)