Mini update: adding touchscreen support


Decided to spend some minutes before bed to add touchscreen support for my project. Adding simple buttons is not how it's supposed to be done, so i found a proper way on YT. There is said that you should use "TouchScreenButton". But i stumbled upon one problem... Right button didn't work and left button... It worked, but as both left and right. I pressed it one time and my ship went left, I pressed it again and it went right (????????). Spent some time digging my project, but the solution was simply to add canvas layer and put buttons in it. And that worked perfectly. Also theese buttons sending inputs no matter what,  even in menu. But there is no player in menu so, I guess, it doesn't matter.

My bad if you had a stroke reading this. I'm not that good with English :s

Leave a comment

Log in with itch.io to leave a comment.