How do I add gamepad support to the 8 direction movement

Get help using Construct 2

Post » Mon Apr 13, 2015 4:47 pm

I'm having trouble adding Xbox 360 gamepad support to my game. I tried simulating the control but it didn't work.
here's my capx: https://drive.google.com/file/d/0Bx3kU1 ... sp=sharing
B
24
S
7
G
4
Posts: 68
Reputation: 4,274

Post » Mon Apr 13, 2015 8:04 pm

Hi,

On your eventsheet "mechanics" change "on gamepad 0 d-pad (up/down/left/right) pressed" by "on gamepad button d-pad (up/down/left/right) is down"

problem solved
Image Image
B
22
S
13
G
130
Posts: 869
Reputation: 67,816

Post » Mon Apr 13, 2015 8:19 pm

It works! thanks! turns out you need to press A before it accepts inputs
B
24
S
7
G
4
Posts: 68
Reputation: 4,274

Post » Mon Apr 13, 2015 8:29 pm

You can add something like:

a text object "Press A button to activate Xbox360 controler" (bottom text object"start")
on eventsheet "intro"
on gamepad0 button A pressed ---> set text to "Gamepad detected"
---> go to dungeon
Image Image
B
22
S
13
G
130
Posts: 869
Reputation: 67,816


Return to How do I....?

Who is online

Users browsing this forum: NN81 and 2 guests