richpixel Posted January 8, 2015 Share Posted January 8, 2015 Just hoping there was a simple way to pause the arcade physics system for when I go into a pause menu... I don't see any property, method or "easy way" in the docs. If this doesn't exist, then what is the right way? Thanks Link to comment Share on other sites More sharing options...
richpixel Posted January 9, 2015 Author Share Posted January 9, 2015 The only way I can see to do this is set 'enable' to false on all my physics bodies. It would be nice if there were a way to pause the physics system separately from the game with one call (ie. game.physics.paused = true) - so I could still animate a 'game paused' menu, etc. But this strategy will be ok for now. Link to comment Share on other sites More sharing options...
darkraziel Posted January 9, 2015 Share Posted January 9, 2015 The only quick way I could think of would be to create a global variable "isPaused" and then surround your update function with if (!isPaused), let me know if it works. Massemassimo and drhayes 2 Link to comment Share on other sites More sharing options...
rich Posted January 10, 2015 Share Posted January 10, 2015 What a bloody great idea https://github.com/photonstorm/phaser/commit/0f42b530eb3891e35d21b509bc6f090f7a62263e PhaserEditor2D, Massemassimo and spinnerbox 3 Link to comment Share on other sites More sharing options...
richpixel Posted January 26, 2015 Author Share Posted January 26, 2015 Thanks a lot!! Link to comment Share on other sites More sharing options...
PhaserEditor2D Posted March 3, 2015 Share Posted March 3, 2015 Oh yes please, we need to pause physics! The truth is that we need an easier way to develop pause menus... Link to comment Share on other sites More sharing options...
J4G Posted May 14, 2015 Share Posted May 14, 2015 Can this happen for P2 as well, please? Link to comment Share on other sites More sharing options...
boolean Posted May 14, 2015 Share Posted May 14, 2015 Can this happen for P2 as well, please? From what I can tell P2 already supports it J4G 1 Link to comment Share on other sites More sharing options...
Recommended Posts