Game Development Community

Issue when moving game window

by Mark Newnam · in Torque Game Builder · 06/14/2007 (9:31 am) · 1 replies

I am working on a puzzle game and have notice that in windowed mode, everything in the game paused when you click on the title bar or move the window around the desktop. I need to find a way to keep the updates going so this can't be used as a trick to think about the level without time ticking off of the clock.

Is there any way I can fix this without only allowing fullscreen play?

Thanks,
Mark

#1
06/14/2007 (12:51 pm)
I would probably try to hide the screen if the mouse left the scene. Maybe try the onMouseLeave() function that is called on the scenegraph (documentation here tdn.garagegames.com/wiki/Torque_2D/Reference_Guide). Have a gui pop up that blacks out the screen and says "paused" perhaps?