Clever ways to remap controls?

Discussion and feedback on Construct 2

Post » Sun Sep 25, 2016 3:55 pm

So I've gotten some posts on the steam community page from people not wanting to purchase my game without the option to remap the controls to their own liking. While I know at least 1 very tedious and code heavy way of doing it. I'm wondering if anyone's dealt with this before, and if it's possible to just check if the button pressed on both gamepad and keyboard equals a signature the event is looking for? Currently I can only find "on that specific key" or "any" key pressed. This forces me to make several events for the same action.

Thanks
B
33
S
10
Posts: 377
Reputation: 3,195

Post » Sun Sep 25, 2016 5:00 pm

Might take a look at key codes.
Image ImageImage
B
169
S
50
G
174
Posts: 8,330
Reputation: 110,804

Post » Sun Sep 25, 2016 5:11 pm

Not quite sure what you're asking later on. Sounds like you just need to switch to key codes / button indices and make a control config. It doesn't have to be complicated; one of mine is barely 15 events.
Image
B
243
S
30
G
13
Posts: 1,787
Reputation: 18,770

Post » Sun Sep 25, 2016 6:31 pm

THIS might help you out and give you a general direction on how to create a menu for keybinds.
Please note that I didn't make this example, so I cannot guarantee that everything works as intended.
ImageImageImage
B
63
S
23
G
78
Posts: 661
Reputation: 44,935

Post » Sun Sep 25, 2016 8:38 pm

Yeah you're right. I remember checking out the codes previously, but was unable to work with them back then. Worked like a charm now though!
B
33
S
10
Posts: 377
Reputation: 3,195


Return to Construct 2 General

Who is online

Users browsing this forum: whitephon and 16 guests