playMaker

Author Topic: Pausing the game  (Read 2072 times)

Pirogun

  • Playmaker Newbie
  • *
  • Posts: 2
Pausing the game
« 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?

Horror

  • Junior Playmaker
  • **
  • Posts: 79
Re: Pausing the game
« Reply #1 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.

Pirogun

  • Playmaker Newbie
  • *
  • Posts: 2
Re: Pausing the game
« Reply #2 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.