Event when no one key is pressed (Keyboard)

Get help using Construct 2

Post » Tue Jan 28, 2014 3:04 am

Hi guys!

I got a question, I am trying to perform an action when no one key is pressed but I cant figure out how it is possible, could you help me please ?

thanks in advanced!!!.
B
4
Posts: 15
Reputation: 276

Post » Tue Jan 28, 2014 3:12 am

I'm not sure if it's what you're looking for but you can do something like X is pressed and invert it.
B
61
S
20
G
56
Posts: 1,077
Reputation: 35,991

Post » Tue Jan 28, 2014 3:39 am

If you're looking to test that a specific key is not down then I would do as stated above.

If you're looking to test that no keys are being pressed then that's not quite as straight-forward. This is all I could think of - I hope it works for you.

A big fan of JavaScript.
B
76
S
20
G
74
Posts: 2,249
Reputation: 46,472

Post » Tue Jan 28, 2014 2:49 pm

Hi guys I need invert the event On any key pressed

but it is not possible right ?

thanks for your help I really appreciate it
B
4
Posts: 15
Reputation: 276

Post » Tue Jan 28, 2014 3:03 pm

You could just set a variable Keypressed

on any key pressed set variable to 1

If variable is not 1, no key was pressed.
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

Post » Wed Jan 29, 2014 3:29 pm

You are right!!! thanks a lot!!!
B
4
Posts: 15
Reputation: 276


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 21 guests