Keyboard code HELP!

Get help using Construct 2

Post » Tue Jun 07, 2016 12:29 am

B
8
S
1
G
1
Posts: 26
Reputation: 958

Post » Tue Jun 07, 2016 12:55 am

21 isn't a key code for anything. Lookup "javascript keycode" on google to get a list of keycodes for the different key. Like this one:
http://www.javascripter.net/faq/keycodes.htm

Numpad 1's key code looks to be 97 if numlock is on.
B
94
S
33
G
118
Posts: 5,394
Reputation: 75,849

Post » Tue Jun 07, 2016 2:30 am

R0J0hound wrote:21 isn't a key code for anything. Lookup "javascript keycode" on google to get a list of keycodes for the different key. Like this one:
http://www.javascripter.net/faq/keycodes.htm

Numpad 1's key code looks to be 97 if numlock is on.



Ooops... now I know, but is it possible to combine two Numpad keys? If i press 21 = audio is played. Is it possible? tnx..
B
8
S
1
G
1
Posts: 26
Reputation: 958

Post » Tue Jun 07, 2016 3:59 am

Like this?

key 1 is down
key 2 is down
trigger once
--- play sound
B
94
S
33
G
118
Posts: 5,394
Reputation: 75,849

Post » Tue Jun 07, 2016 9:36 am

R0J0hound wrote:Like this?

key 1 is down
key 2 is down
trigger once
--- play sound


thank you ... cheers :D
B
8
S
1
G
1
Posts: 26
Reputation: 958


Return to How do I....?

Who is online

Users browsing this forum: Semoreh and 8 guests