Button Remapping

Get help using Construct 2

Post » Sat Sep 28, 2013 7:56 am

Hey all! does anyone know of a tutorial on button remapping? I can't find it anywhere, and it's a pretty important part of my game. Thanks.
B
3
Posts: 5
Reputation: 215

Post » Sat Sep 28, 2013 8:22 am

Dictionary called KeyMap
KeyMap.setKey([custom.key], [action.key] )
Function.Call( KeyMap.Get( keypressed ) )

so when setting say
Set.Up     KeyMap( "W", "UP")
Set.Down   KeyMap( "S", "DOWN")


However the real trick is run time control
On Any Key Pressed
-- Function.Call( "Pressed" & KeyMap.Get( KeyPressed ) )

On Any Key Released
-- Function.Call( "Released" & KeyMap.Get( KeyPressed ) )


You need to define how to set up the key map your self. but that's one theory of how to do custom key mapping.
B
90
S
18
G
9
Posts: 2,455
Reputation: 15,028

Post » Sat Sep 28, 2013 4:12 pm

wow, thanks so much!
B
3
Posts: 5
Reputation: 215


Return to How do I....?

Who is online

Users browsing this forum: beohs, KTML5 and 13 guests