Custom User-Defined Controls

Get help using Construct 2

Post » Sun Mar 31, 2013 11:27 pm

I'm trying to figure out how to implement a control system so you can choose the controls of the game IN the game (ie. the player can go into the options and set Move Left to "V", and then set the Move Left event to <if "whatever_key_is_set_to_move_left" is pressed>)

I'd imagine it's somehow done with keycodes & variables, but there are no key code tutorials that explain how to use them.

Any help would be greatly appreciated!

Thanks,
Steve
B
40
S
12
G
1
Posts: 532
Reputation: 4,147

Post » Mon Apr 01, 2013 12:57 am

Actually I figured it out using an array to set the keycodes and then using "On KeyCode, Array.At(X)". My only question now; is there a list of every key code? I want to be able to have the player set "A" to move left, but I want the text to show "A" instead of "83 (or whatever number it is)"
B
40
S
12
G
1
Posts: 532
Reputation: 4,147

Post » Mon Apr 01, 2013 10:55 am

Hi,

check this post..

keycodes
B
48
S
16
G
9
Posts: 1,097
Reputation: 11,195

Post » Mon Apr 01, 2013 3:27 pm

Keyboard.StringFromKeyCode(83)
B
55
S
29
G
19
Posts: 1,520
Reputation: 25,650

Post » Mon Apr 01, 2013 7:03 pm

Thanks guys!
B
40
S
12
G
1
Posts: 532
Reputation: 4,147


Return to How do I....?

Who is online

Users browsing this forum: brunopalermo, ChesVCF, R0J0hound, Solomon, trance and 21 guests