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
44
S
12
G
1
Posts: 545
Reputation: 4,271

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
44
S
12
G
1
Posts: 545
Reputation: 4,271

Post » Mon Apr 01, 2013 10:55 am

Hi,

check this post..

keycodes
B
51
S
16
G
9
Posts: 1,098
Reputation: 11,252

Post » Mon Apr 01, 2013 3:27 pm

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

Post » Mon Apr 01, 2013 7:03 pm

Thanks guys!
B
44
S
12
G
1
Posts: 545
Reputation: 4,271


Return to How do I....?

Who is online

Users browsing this forum: blackhornet, Construct Monkey, Yahoo [Bot] and 8 guests