try TouchScript, its free and worked great for me after around 30 hours of fiddling around to learn how it works.
https://touchscript.github.io/
u could totally create an invisible plane for the left side of the screen and one for the right side. u can attach a press gesture to each plane and have the callback move the character left or right depending on which plane was pressed. What's nice is that you can also test this with mouse because touchscript has a built in emulator for it.
Alternatively you can have a full screen layer for the camera and a press gesture on it. Whenever any press is detected simply mathematically check whether its to the left or to the right of the midpoint of the screen, and then move the character accordingly.
I like second solution better since you don't have to make any extra objects.
↧