Kyeboard lock while on pause

Get help using Construct 2

Post » Sat Jun 30, 2012 10:23 pm

What's up, constructors!
i have a little problem. i want to disable any controls while my game is on pause.
I use plug-in PAUSE and when i set timescale to 0 i still can use my keyboard to set character to Mirrored or notMirrored. Is there any events i can use that on pause all my keys-controls will be disabled excluding "Pause" key (in my case it's pace)

Thank You very much and sorry if similar posts already exist, i read some tutorials but it wasn't enough
big thank's for all who will respond
B
19
S
4
Posts: 21
Reputation: 1,975

Post » Sat Jun 30, 2012 10:53 pm

Create a variable "PauseVar" that you set to 1 when it's paused, and add a check for "PauseVar = 0" on your key events. (Except the pause key)
B
27
S
8
G
8
Posts: 903
Reputation: 8,452

Post » Sun Jul 01, 2012 1:18 pm

Thank You very much, it helped A lot!!!)))
B
19
S
4
Posts: 21
Reputation: 1,975

Post » Sun Jul 01, 2012 9:23 pm

you can make it in another way , just add compare two values and put timescale > 0 with all keyboard events
B
48
S
15
G
6
Posts: 795
Reputation: 12,035

Post » Mon Jul 02, 2012 7:32 pm

Thank You, and yeah it can be done too)
B
19
S
4
Posts: 21
Reputation: 1,975


Return to How do I....?

Who is online

Users browsing this forum: heliogame and 14 guests