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.
Football Dash: GooglePlay | AppStore

Zombie Bash: GooglePlay | AppStore

Kunkong: GooglePlay
B
64
S
22
G
3
Posts: 450
Reputation: 6,764

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
82
S
30
G
12
Posts: 517
Reputation: 12,763

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
37
S
10
G
7
Posts: 490
Reputation: 7,080


Return to How do I....?

Who is online

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