Is there any way to make an event to disable keys?

Get help using Construct 2

Post » Fri Apr 06, 2012 8:34 pm

For example, if I wanted to make it so that while one key is pressed, no other key can be detected for a few seconds. Or, more importantly, if certain objects are overlapping, a certain key press will not respond?
B
12
S
3
G
5
Posts: 10
Reputation: 3,544

Post » Sat Apr 07, 2012 5:00 pm

Use a global variable, e.g.

+ On space pressed
+ Global 'DisableFlag' is 0
-> Do actions

The actions will not run for the key press if you set DisableFlag to 1, so the key has effectively been disabled.
Scirra Founder
B
397
S
236
G
88
Posts: 24,423
Reputation: 194,560


Return to How do I....?

Who is online

Users browsing this forum: Anna Nehves Br, divsyntax, volumetv and 21 guests