4 Players w/ Controllers

Get help using Construct 2

Post » Thu Jan 09, 2014 3:21 pm

Hi everyone.
I'm trying to figure out how to get a 4 player game working where I only have to make one set of events for every player, but I'm not sure how to go about it the best way.



This is my attempt, but it moves every player with one controller.
B
10
S
3
G
3
Posts: 234
Reputation: 3,467

Post » Thu Jan 09, 2014 4:01 pm

Try putting them as sub events under a 'for each' loop

something like:

>For each HumanPlayer
..>Gamepad HumanPlayer.ControllerNumber Left analog > 0 -simulate right
..>Gamepad HumanPlayer.ControllerNumber Left analog < 0 -simulate left
..>etc etckeepee2014-01-09 16:04:32
B
28
S
8
G
1
Posts: 469
Reputation: 4,683

Post » Thu Jan 09, 2014 4:04 pm

@keepee Uh..that worked. Guess that should have been obvious. Thanks for the help.
B
10
S
3
G
3
Posts: 234
Reputation: 3,467

Post » Thu Jan 09, 2014 4:06 pm

for each is super useful, good luck
B
28
S
8
G
1
Posts: 469
Reputation: 4,683


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 43 guests