How to put the game on pause?

I want to create a GUI, and then I will push some button, for to to put the game on pause. How to create a GUI I already know.
Help me please to do this!!!

Did you try my answer? (How to call the GUI then is need and to close then is need?)

I created an example: https://github.com/britzl/publicexamples/tree/master/examples/pause_game
And try it here: http://britzl.github.io/publicexamples/pause_game/index.html

4 Likes

I will try…Thanks!

I posted this response on another thread but realized the post title isn’t appropriate to the question, so I’ll repost it here:

Hey, I’m trying to do something similar in my game at the moment. However, setting the time step on any of my proxies seems to do absolutely nothing… I tried msg.post(main_ref, “set_time_step”, {factor = 0.0, mode = 1}) to pause the game, but it’s disregarded. I tried larger values than 0 and mode 0 but this also seems to have no effect. Any suggestions?

EDIT: Nevermind! I was sending the message to a collection not the parent proxy :stuck_out_tongue:

3 Likes