How do I Toggle Keyboard and Gamepad Controls

Get help using Construct 2

Post » Sun May 25, 2014 6:41 am

I tried to attach function calls to all the button presses of my controls, and then use the resulting functions to move the player so I could easily make gamepad or keyboard controls where they can be toggled between each other in the game's settings, but this method proved to be a failure and didn't work at all.

Is there an easy way to implement keyboard controls and gamepad controls which can be toggled without making my code a total mess?
B
44
S
12
G
1
Posts: 231
Reputation: 3,875

Post » Sun May 25, 2014 11:37 am

Never mind, apparently a variable I was setting to off happened immediately after the function calls even though it was in the code before it.
B
44
S
12
G
1
Posts: 231
Reputation: 3,875


Return to How do I....?

Who is online

Users browsing this forum: ksiads, marc254, marcinkowski and 5 guests