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
26
S
8
G
4
Posts: 68
Reputation: 4,424

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
25
S
14
G
137
Posts: 876
Reputation: 71,505

Post » Mon Apr 13, 2015 8:19 pm

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

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
25
S
14
G
137
Posts: 876
Reputation: 71,505


Return to How do I....?

Who is online

Users browsing this forum: Euduardo, Kin, Lancifer, mickclarke, tinhofiel, TRMG and 46 guests