Tweening or moving the container of a paused scene

Phaser 3’s new scene system is incredibly powerful. I am however stuck on doing one thing - tweening/moving a paused scene.

The explanation is better served with an example. Say we want to make a game like Pokemon, but we transition between maps when we reach the edge by moving the camera/map. This Phaser 2 game illustrates the effect I’m going for nicely - if you move to the edge of the screen, it ‘transitions’ to the next screen by moving the camera.

For my game, I am aiming to:

  • make each ‘screen’ a scene
  • during the transition, both scenes must be paused
  • the camera is still tweeted/moved.

Unfortunately, it seems like the only way to update/tween the scene is through the scene’s camera. But moving the scene’s camera does not work if a scene is paused.

I have tried the transition method in scene, but that also does not work if the scene is paused.

Perhaps another example is the Phaser Scene Window OS Demo. If we had this example, with the additional requirement of being able to ‘pause’ the scenes while being able to move the window/scene in question, how can we do it?

1 Like