farmerdwightks Posted June 30, 2017 Share Posted June 30, 2017 Is there some way to be notified that the game window has lost/regained its focus so that it can pause and unpause certain features of the game? Specifically, I have a timer that is based on the current time minus a start time so I need to update the new start time when the window is in focus again. I also, want to pause background music from playing. The sound automatically stops playing audibly but the music is still progressing silently. Link to comment Share on other sites More sharing options...
samme Posted June 30, 2017 Share Posted June 30, 2017 You can use the Game#onBlur and Game#onFocus signals. If you use Phaser timers those will pause automatically with game pauses. Link to comment Share on other sites More sharing options...
Recommended Posts