How do I make two players on same screen.

Get help using Construct 2

Post » Mon Sep 15, 2014 12:45 am

If I wanted to make a ice hockey game where two players can play at the same time moving their goalie, how do I allow two touch inputs? If I do a regular touch command for both players, the input gets confused as they are both touch.x and touch.y.
Check out my games on Google Play:
BEAST ATTACK (1,000,000+ downloads!)
ZOMBIE BASH (Android) (Launched Feb 17)
ZOMBIE BASH (iOS) (Launched March 17)
B
56
S
18
G
2
Posts: 440
Reputation: 5,640

Post » Mon Sep 15, 2014 6:58 am

you can divide the screen in half
if touch.X > window.width/2
move player1
else
move player2
Image
B
79
S
29
G
12
Posts: 515
Reputation: 12,584

Post » Mon Sep 15, 2014 8:43 am

@jook00

You could give each player an on-screen controller (sprites) and just control the goalie by object touched

For example:
Two player onscreen control.capx


You just need to do a check which controller belongs to which player when they are touched so you move the right player
You do not have the required permissions to view the files attached to this post.
Find all the Construct 2 games that were on Steam Greenlight here
B
33
S
9
G
7
Posts: 451
Reputation: 6,782


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 30 guests