Touchscreen Question
Hi everybody! I'm a beginner in Unity5 and I'm trying to create a game for iOS and Android. I need to divide the screen in 2 parts (left and right): left for player movements and right for attack/shot. I'm not good in scripting, so i need some help. Anyone can tell me something useful? or maybe where i can find some tutorial or guide to that.
p.s.
i'm just trying to have a movement set like "crossy road" or "temple Run"... so if i drag left my finger on the screen the player starts moving left and don't stop until i tap on the screen (in the left side of the screen), in the same case if i drag right my finger on the screen the player starts moving right and don't stop unti i tap on the screen(in the left side of the screen)... same thing for jump and crouch. And if i tap on the screen(in the right side) my character will shoot/attack.
I'm sorry for my bad english by the way i really hope that someone can help me...
Answer by Firedan1176 · Oct 30, 2015 at 12:02 AM
There are many different ways to do this. Considering that you are new to Unity, coding may be in the way, and there are plenty of assets on the asset store for your situation. I suggest trying this one, which worked perfectly for me (I am not trying to advertise). You can also do some simple adjustments to your liking.
Your answer
![](https://koobas.hobune.stream/wayback/20220612043204im_/https://answers.unity.com/themes/thub/images/avi.jpg)