Hi all,
I am making a small game. in that i don’t know how to write code to tap for tablet.
i want object to move left side when we tap on left side and right side when we tap on right side.
SpeedCar App For Free | APK Download For Android
After installing apk u can get my question.
Is there any special library to access for that.
Thanks & Regards
Shankar
1 Answer
1
Your question is vague. See Input.touches for the interface to handle touch input in Unity. There are third-party tools that abstract away mouse/touch differences making it easier to develop for touch devices. We use FingerGestures which can be found in the Asset Store. TouchKit from Prime31 has been mention on this list. It is free and can be found here. As for the game, moving left and right will depend on how you move your vehicles: translation, rigidbody physics, or character controller. In addition, most racing games have some curves and needs some sort of path following. A free place to start with paths is with iTween and the PutOnPath() and PointOnPath() methods.
No one is going to download and install something to help you. You need to put some more time in yourself until at least you can ask it without having people figure out your question to.
– YokimatoOk.. i have already informed everything in question itself. its just only to people for better understanding.
– Shankar