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
22
S
3
Posts: 451
Reputation: 2,135

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
22
S
3
Posts: 451
Reputation: 2,135

Post » Mon Apr 01, 2013 10:55 am

Hi,

check this post..

keycodes
B
44
S
15
G
9
Posts: 1,096
Reputation: 11,013

Post » Mon Apr 01, 2013 3:27 pm

Keyboard.StringFromKeyCode(83)
B
54
S
28
G
18
Posts: 1,520
Reputation: 24,990

Post » Mon Apr 01, 2013 7:03 pm

Thanks guys!
B
22
S
3
Posts: 451
Reputation: 2,135


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 18 guests