How do I make my player go to touch

Get help using Construct 2

Post » Wed Aug 19, 2015 9:17 pm

I Need help making my player go to either touch one or touch two based on what side of the screen you are touching. Since it is a two player game that last part is crucial! i need to to decipher which side of the screen the touch is on too. Please Help!
and please be detailed in the answer because i am VERY new to construct 2


Thank in Advance!
B
23
S
7
G
1
Posts: 90
Reputation: 2,070

Post » Wed Aug 19, 2015 11:00 pm

You could try something like this:

Image
B
15
S
6
Posts: 105
Reputation: 1,356

Post » Thu Aug 20, 2015 12:23 am

Ok Thanks. but won't that teleport the player? and what about the second player? i need the player to move to the "Touched" area.
Thanks for the suggestion
B
23
S
7
G
1
Posts: 90
Reputation: 2,070

Post » Thu Aug 20, 2015 12:43 am

I Just Tryed what you sent and it didnt work for some reason. it kept sending my left player to the top right corner, and when i would "touch" it would teleport there, then go back to the top right corner. Any Suggestions?

EDIT: I had to delete the else part of the statement
B
23
S
7
G
1
Posts: 90
Reputation: 2,070

Post » Thu Aug 20, 2015 1:35 am

I don't exactly understand what you need. How do you know which player is touching the screen? Where do you want to move the player object?
B
15
S
6
Posts: 105
Reputation: 1,356

Post » Thu Aug 20, 2015 1:49 am

Ok Sorry, im not that good at explaining. im trying to make a game where the player will move to the touched area. like he will slowly go to the touched area. an example of this would be on the google play store an app called wizard wars. Everything is working except the player is teleporting to the touch, not moving to it. Imagine like a 2 player pong style game
B
23
S
7
G
1
Posts: 90
Reputation: 2,070

Post » Thu Aug 20, 2015 2:26 am

For the movement, look at this post
B
15
S
6
Posts: 105
Reputation: 1,356

Post » Thu Aug 20, 2015 12:17 pm

OK Thank you!!
B
23
S
7
G
1
Posts: 90
Reputation: 2,070


Return to How do I....?

Who is online

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