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
21
S
5
G
4
Posts: 65
Reputation: 3,993

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
19
S
10
G
125
Posts: 867
Reputation: 64,937

Post » Mon Apr 13, 2015 8:19 pm

It works! thanks! turns out you need to press A before it accepts inputs
B
21
S
5
G
4
Posts: 65
Reputation: 3,993

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
19
S
10
G
125
Posts: 867
Reputation: 64,937


Return to How do I....?

Who is online

Users browsing this forum: NN81, Sumyjkl, Yahoo [Bot] and 3 guests