User-chosen controls

Get help using Construct 2

Post » Thu Feb 21, 2013 4:31 pm

Is there any way to allow the user to customize the controls in a game? Basically allowing them to go through a menu and do things like change jump from Up to Space, or Attack from R to F.
Changing any action to whatever key they want.grimwolf2013-02-21 16:33:53
B
6
S
2
Posts: 67
Reputation: 1,136

Post » Thu Feb 21, 2013 4:51 pm

The keyboard object has 'key code' features for this purpose. 'On any key pressed' allows you to get the last key code, for setting controls, then you can test for a particular key code being pressed in an event.
Scirra Founder
B
399
S
236
G
89
Posts: 24,546
Reputation: 195,436

Post » Thu Feb 21, 2013 6:51 pm

Awesome, thanks. Seems the same can be done for gamepads as well, so this is exactly what I needed.
B
6
S
2
Posts: 67
Reputation: 1,136


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 18 guests