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
363
S
216
G
75
Posts: 23,120
Reputation: 180,534


Return to How do I....?

Who is online

Users browsing this forum: MPPlantOfficial and 17 guests