Local Multiplayer with Gamepads

Get help using Construct 2

Post » Thu Apr 13, 2017 5:14 pm

Hi,

I try to make a game with simple local Multiplayer (2 Characters and 2 Gamepads).
I used this tutorial for the controller input https://www.scirra.com/tutorials/4859/smooth-gamepad-joystick-movement

I just copy the same for the second player and changed the "Gamepad0" condition to "Gamepad1" and the "8 directions player" to "8 directions player 2"
so ...
actually almost anything is working. Every player can open doors for its own and collect things and everything is working fine.

The only problem are the Sticks of the controller. Everything I do with the Left or Right Stick is bugged BUT only for the second character. The first player is working 100%. I don't understand it ...

Im already searching for a stupid failure in the code or a wrong condition or Character Action for days, but ... no ...

Do I have to use the "Gamepad.count" thing oder something else to make it working?

You can download a Test of my Project here:
https://drive.google.com/open?id=0B8Isq ... kR3OEFTZjg
Last edited by Dain on Sun Apr 16, 2017 5:03 pm, edited 1 time in total.
B
5
S
1
Posts: 6
Reputation: 339

Post » Thu Apr 13, 2017 6:27 pm

Got an example capx of what you've done? There are quite a few possibilities and it would be a bit silly just to guess from your description alone.
Mistakes were made.
B
53
S
27
G
114
Posts: 1,695
Reputation: 64,438

Post » Thu Apr 13, 2017 6:53 pm

https://drive.google.com/open?id=0B8Isq380SFJKbUpGQkR3OEFTZjg

Player 2 can just walk in 4 directions instead of 8 and his Cursor is completely useless
B
5
S
1
Posts: 6
Reputation: 339

Post » Sun Apr 30, 2017 3:44 pm

Can nobody help me?
B
5
S
1
Posts: 6
Reputation: 339

Post » Sun Apr 30, 2017 4:17 pm

@Dain

in your player 2 group, you changed Gamepad 0 to Gamepad 1 in the top Gamepad field, but in the value field you still reference Gamepad 0.
Gamepad.Axis(0,0)/4 should be Gamepad.Axis(1,0)/4

in all cases the first number in the .Axis expression should be 1 for Gamepad 1
don't forget the two occurrences where you set bullet angle of motion in event 29.
B
98
S
34
G
20
Posts: 438
Reputation: 17,825

Post » Sun Apr 30, 2017 4:38 pm

Oh yeah, it works! Thank you very much AllanR!
I had no idea that I have to do this =p
B
5
S
1
Posts: 6
Reputation: 339


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 3 guests