Game Development Community

Pausing everything?

by Jason McIntosh · in Torque Game Builder · 04/19/2005 (8:49 am) · 3 replies

Is there a way to pause the whole system so that scheduled events and everything are also paused?

#1
04/19/2005 (8:55 am)
The power of search: http://www.garagegames.com/mg/forums/result.thread.php?qt=27664
#2
04/19/2005 (9:22 am)
Thanks, Philip. Why didn't I think of that? :P

In summary, for posterity...

If you want to affect only a scenegraph:
Quote:You can use "fxSceneGraph2D::setScenePause()" which will pause the updating of the scene you select (see ref doco). If you're using T2D scenes for GUIs (probably best to use GUI system though), then you should use separate scenes so that you can independently control them.

If you want to pause everything in the game, set the "magic" global variable $timescale to 0, with the caveat that $timescale doesn't work nicely with network games.
#3
04/25/2005 (11:53 am)
I tried setting $timescale as a slow motion feature, but it has no affect.