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
11
S
3
G
5
Posts: 10
Reputation: 3,514

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
359
S
214
G
72
Posts: 22,952
Reputation: 178,620


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 24 guests