• Content Count

  • Joined

  • Last visited

About elijahb

  • Rank

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Hi, I'm totally new building games and started a small project using phaser. I've seen that on page blur or tab switch the game stops, and looking for this I've found about the disableVisibilityChange option to keep the game running. Since this only works if the page is still being displayed (without focus), I added events for onPause and onResume to rearrange the game when the page focus is back. But I've encountered that when setting disableVisibilityChange = true, events onPause and onResume don't work, even that the game is paused when switching tabs. I'm missing something? How can I get events onPause and onResume to work, and at the same time keep the game running when it's still visible but without focus? Thanks!