Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Pirogun on February 04, 2013, 07:57:51 PM

Title: Pausing the game
Post by: Pirogun on February 04, 2013, 07:57:51 PM
I was wondering on how to pause the game with playmaker. I already set the timescale to 0, but my controller still receives the input form the axes so the camera moves. How can I stop this?
Title: Re: Pausing the game
Post by: Horror on February 04, 2013, 09:18:58 PM
I had the same problem. My solution was to add a global event for PAUSED and another for RESUME to the FSM which handles device acceleration. The PAUSED event goes to an empty action, so when you hit the pause button you send this event and it rips the FSM out of the Get Device Acceleration action. The RESUME event links to the Get Device Acceleration action, so when you unpause the game you can start taking input again.
Title: Re: Pausing the game
Post by: Pirogun on February 04, 2013, 09:56:28 PM
Ok well I am using the Character System for my character so I was wondering if there was a way to just clamp the camera in position so the camera wouldn't move.