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
45
S
13
G
1
Posts: 236
Reputation: 4,010

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
45
S
13
G
1
Posts: 236
Reputation: 4,010


Return to How do I....?

Who is online

Users browsing this forum: dand, dop2000, mageekm, oosyrag, Yahoo [Bot] and 31 guests