playMaker

Author Topic: What happens if a game is interrupted e.g. phone call ?  (Read 52 times)

ilovelessons

  • Junior Playmaker
  • **
  • Posts: 70
    • View Profile
What happens if a game is interrupted e.g. phone call ?
« on: October 01, 2017, 05:57:10 PM »
Hi,

I am building a game for the Google Play Store and I wondering what happens to a game if you are playing it and its get interrupted e.g. you get a phone call.

When using PlayMaker to build a game will it automatically pause the game in its current state and allow the person too take the call and then resume after?

Or does this require separate coding? Any advice on how to approach this?

I wasn't too sure what to search for on the net to get insight into this issue.

Thanks guys.

Groo Gadgets

  • Junior Playmaker
  • **
  • Posts: 95
    • View Profile
Re: What happens if a game is interrupted e.g. phone call ?
« Reply #1 on: October 01, 2017, 06:15:28 PM »
Heya,

When you get a phone call while playing your game should behave the same as when you quit out of the game manually. You need to setup your game to listen for onApplicationQuit and onApplicationPause events.

Here's a thread that will help you get on the right track: http://hutonggames.com/playmakerforum/index.php?topic=1591.msg14044

Cheers,

Simon