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
29
S
9
Posts: 355
Reputation: 2,936

Post » Sun Sep 25, 2016 5:00 pm

Might take a look at key codes.
Image ImageImage
B
168
S
50
G
163
Posts: 8,223
Reputation: 105,065

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
242
S
29
G
13
Posts: 1,787
Reputation: 18,685

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.
ImageImageImageImage
B
56
S
20
G
76
Posts: 635
Reputation: 43,359

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
29
S
9
Posts: 355
Reputation: 2,936


Return to Construct 2 General

Who is online

Users browsing this forum: Darth Crusher and 12 guests