How do I simulate double tap on a keyboard

Get help using Construct 2

Post » Wed Nov 25, 2015 1:46 pm

im trying to make a system for my game that would require a player to double tap a key on the keyboard to move fast, how would i do it ?
B
32
S
7
Posts: 24
Reputation: 1,570

Post » Wed Nov 25, 2015 1:52 pm

One way to do it is set a variable to 1 on key pressed, start a timer for a certain period, and on timer set the variable back to 0..
if the key is pressed while the variable is 1, you have your double tap..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775


Return to How do I....?

Who is online

Users browsing this forum: SneakyHands and 5 guests