2 player platformer?

Get help using Construct 2

Post » Tue Apr 09, 2013 2:44 am

okay, so i've figured out the scripts to put the two players on the scene, and i want one of them to move with wasd and the other to move with the arrows, but when i use the arrow keys to move the second character, the first character (who uses the wasd) also moves.

in short, is there a way i can shut off the arrow keys for player one, without shutting off all input for that character?

ps: im using the platformer behavior.
B
7
S
2
Posts: 48
Reputation: 888

Post » Tue Apr 09, 2013 2:47 am

Hey Lary,

Have you turned off "default control" for both of your player objects in the left hand side of the screen? That should fix it.
ImageImage
B
73
S
16
G
6
Posts: 1,038
Reputation: 10,473

Post » Tue Apr 09, 2013 2:51 am

oh man, thank you so much! that helped a lot!
B
7
S
2
Posts: 48
Reputation: 888

Post » Tue Apr 09, 2013 2:57 am

No worries, have fun creating!
ImageImage
B
73
S
16
G
6
Posts: 1,038
Reputation: 10,473

Post » Tue Apr 09, 2013 7:15 pm

Very nice idea, can you share this script of 2 players at the same time? ;)

@larynachosalmeidamarcell2013-04-11 19:26:23
B
16
S
4
G
4
Posts: 56
Reputation: 2,942

Post » Sun Apr 14, 2013 6:20 pm

before you begin:

disable default controls for player one. keep them on for player 2.

for p1 walking (WASD)

WHEN W IS HELD DOWN --> simulate platform "jump"

WHEN A IS HELD DOWN --> simulate platform "left"

and so on...
B
7
S
2
Posts: 48
Reputation: 888


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 25 guests