Game Development Community

Pause game

by Waleed · in Technical Issues · 06/30/2007 (11:00 pm) · 4 replies

Hi all
how i can pause game in a certain state and resume it again
for example when press 'p' the game has been paused and when you pressed 'r' will resume the game
thanks 4 all

#1
06/30/2007 (11:15 pm)
Waleed ... what engine are you using?
#2
07/02/2007 (6:28 am)
Toruqe Game Engine
#3
07/02/2007 (6:53 am)
Toruqe Game Engine
#4
07/02/2007 (7:01 am)
$TimeScale = 0;

That will do it for you. When you're done just set it back to 1 and gameplay resumes.

And don't hit refresh, it makes you repost.