How to make a two player game.

Get help using Construct 2

Post » Thu May 24, 2012 11:28 pm

Wooooah really thank you mate, that help me a lot. Simple and practical.

If that bother you too much, could you please make the same example for my second problem :

Make the first sprite, automatically face the second sprite.
Since I want to make a 2d fighting game, that would help me, really.
B
2
Posts: 7
Reputation: 289

Post » Fri May 25, 2012 12:51 am

The game pad plugin might work. If I'm not mistaken it can handle multiple pads. I think it just assigns a number to the pad such as pad0 and pad1. I'm not sure how you would handle split screen though. So pad0 would be assigned to sprite0 movement and pad1 would be assigned to sprite2 movement commands. Ie if pad1 left axis >= 50 then simulate control for sprite2 left,right,up,down accordingly. Doing that for both should allow movement of both but again keeping them both visible on the screen might be a bit more of a challenge on bigger layouts.
B
68
S
21
G
15
Posts: 701
Reputation: 15,604

Post » Fri May 25, 2012 1:22 am

To make them both face each other you can just use the Sprite.X compared against Sprite2.X so when Sprite.X is Greater Than Sprite2.X then you mirror the sprites. Then you need an else to disabled the mirror.

Two player look example
B
6
G
1
Posts: 23
Reputation: 921

Post » Fri May 25, 2012 9:00 am

Really sandcrawler, thank you. I've searching how to do it for hours.

You're the stuff. Thanks to the other too.
B
2
Posts: 7
Reputation: 289

Post » Fri May 25, 2012 11:23 am

anybody tried with a second mouse and / or controller?
B
15
S
3
G
5
Posts: 396
Reputation: 4,977

Post » Sat May 26, 2012 4:54 pm

I think both Sandcrawler's and andorade's example uncovered a bug

Issue:
When I press the W&D key will while also pressing the UP&Left Arrow both pieces switch places as expected. But..

If I immediately Press the W&A and also the UP&RIGHT arrow the pieces stay in the same place or move erratically.
B
28
S
8
G
8
Posts: 530
Reputation: 7,154

Post » Sun Feb 15, 2015 1:13 pm

add turret if you want them to face each other, i think...
B
3
Posts: 1
Reputation: 177

Previous

Return to How do I....?

Who is online

Users browsing this forum: Yahoo [Bot] and 25 guests