How can I pause the scene, but have process mode nodes still process physics?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By asixjin

Can someone help me out with something? I am making a game where you have to jump into a mini-game to gain energy. I want the mini-game to lay on top of the main game while it is paused. The only problem is even though I have the mini-game scene’s pause mode set to process none of the collisions are being processed. Is there a way around this? I assumed that if the mini-game scene was set to process pause mode it would still process the physics/collisions of the mini-game?

:bust_in_silhouette: Reply From: eons

You say that pausing stops physics server too but you want it active?

Well… it seems that here is your problem

As you can see, pause stops the physics servers but set_active is exposed to GDScript so, after setting pause, you can do:

PhysicsServer.set_active(true)

Use Physics2DServer if is for 2D.

Thank you! That did the trick. Everything else is still paused excepted for the mini-game including the collisions.

asixjin | 2018-08-10 10:36