How do I make my player go to the touch?

Just started using Construct 2? Post your questions here

Post » Wed Aug 19, 2015 8:56 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
22
S
7
G
1
Posts: 90
Reputation: 2,045

Post » Thu Aug 20, 2015 4:42 pm

can you not just say something like :

if touch.x < (screenwidth/2) then player is touching the left hand side of the screen ?
August 2015 - I misplaced a lot of links - I will try to find backups and repost. If You find a post that interests please reply to post with @rampackwobble and I will get a nudge!

If you find my posts useful please consider donating something to a local charity or to the http://www.mndassociation.org/
B
64
S
34
G
47
Posts: 1,194
Reputation: 30,882

Post » Thu Aug 20, 2015 4:47 pm

Oh! thats a good idea! :D Thanks!!
B
22
S
7
G
1
Posts: 90
Reputation: 2,045


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 4 guests