Jump to content

Phaser 3 pausing physics and pausing scene


Bhagya
 Share

Recommended Posts

Hi,

I am working on an HTML5 game and I use Arcade physics as physics system for the game. I am trying to implement a pause button functionality and ran into a problem of choosing which methods to use from the below mentioned methods.  They all seem to be similar in functionality and the docs do not contain much further explanations. Can someone please elaborate a little on the functionalities of these methods and mention the difference between them? 

physics.pause(), physics.resume()

scene.launch(), scene.start()

scene.pause(), scene.resume();

scene.switch()

physics.world.resume(), physics.world.pause()

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...