Pausing when out of window

For questions about using Classic.

Post » Tue Aug 30, 2011 10:34 am

I'm not sure if this question has been asked before but a search for anything regarding "window" or "pause" led to nothing.

My problem is that my game still kind of registers controls when I tab out or have it running in the background, along with that, the game still runs completely while in the background shown by the fade-in and fade-out I implemented on a sprite object still functioning while the window isn't focused.

What I would like to know is if there's any way to make the game process pause itself while the window isn't focused? I tried fiddling around with the Window object but nothing seems to work and I can't find any settings that help within the Application Properties.

Any help would be much appreciated, thanks.
B
3
G
1
Posts: 6
Reputation: 487

Post » Tue Aug 30, 2011 3:37 pm

I had this problem, I ended up forcing my game to the front until the user pressed the pause key. I just hope whoever plays it reads the readme...
"Construct 4 lets YOU make advanced games! (maybe)" Construct Classic - Examples Kit
B
86
S
28
G
13
Posts: 2,092
Reputation: 15,009

Post » Wed Aug 31, 2011 4:09 am

Damn, I was afraid there'd be no fix to this, every other .exe I've tried has the game always running in the background whether it be fullscreen or windowed mode.

Anyway, thanks for the input.

edit
I've tried to see what exactly was causing the issue and it seems to point towards the "Control Down" condition. If you use "Key Down" instead, the input doesn't seem to register when the window is in the background.tenpoundpixel2011-09-03 22:31:41
B
3
G
1
Posts: 6
Reputation: 487


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 2 guests