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
1
Posts: 67
Reputation: 986

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
357
S
214
G
72
Posts: 22,946
Reputation: 178,228

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
1
Posts: 67
Reputation: 986


Return to How do I....?

Who is online

Users browsing this forum: badmoodtaylor and 15 guests