- Home /
Question by
vaisakhbabu21 · Feb 17, 2018 at 02:56 PM ·
unity 2dmultitouch
Multi-touch in a unity 2D game
I'm trying to make a 2D android multiplayer game like ping pong.How can i use multi-touch to move paddles on the sides individually.I'm having trouble figuring out the code move both the paddles simultaneously
Comment
Answer by mafima · Feb 17, 2018 at 03:18 PM
left = player A, right player B
define the middle as x=0
if mouseposition is >0 it is player B, <0 it is A.
then you teleport the paddle to the position in update.
that is the general concept. you need more help?