- Home /
How would you make a simple touch control for the android?
All I want is 4 buttons in the bottom corner, one makes my character move up, one makes him move left, right, and down. I was thinking of just putting 4 cubes on the bottom left of my scene and just add scripts for when clicked my character moves, but I don't think OnMouseEnter works with android so what would be the alternative?
http://www.youtube.com/watch?v=z8XU$$anonymous$$-19kd$$anonymous$$
Try tutorials first then ask specific questions!
Answer by TheOneWhoKnocks · Nov 23, 2013 at 09:03 AM
if ((Input.touchCount == 1) && (Input.GetTouch(0).phase == TouchPhase.Began) ) { //movement script goes here }
Your answer
Follow this Question
Related Questions
How to active mobile keyboard ? 1 Answer
How can I move player sideways by dragging with mouse or with mobile device when pressed down? 0 Answers
How to Move the Car With Touch? 1 Answer
How to touch, move and rotate 3D objects in XZ? 1 Answer
Mobile Keyboards -- Highlighting all text by default when keyboard is opened (iOS vs. Android) 0 Answers