While developing my Batty Bat Game, I needed a way for players to use touch or a mouse to fly my bat around. I looked for quite a while to find a piece of code to work with. I finally found one on the Godot Q/A forum, but it was for Godot 2.x and 3D. Since I was working in Godot 3.x and 2D, I had a bit of refactoring to do on the code to get it to work. The code I found was from Jacub Grzesik better known as kubecz3k on the Q/A forum. Jacub was nice enough to share his code, so now I am sharing my code modification for Godot 3. You can find a demo I made here on Github https://github.com/gswashburn/Analog-Stick-Demo This should be a good starting point for game developers wanting a basic movement demo to follow. The artwork used in the demo is from opengameart.org.

Changed the location of the files from my website to a GitHub repository for easier download. As I make updates to the demo I will commit them to the repository. Saves some work!

17 days later

Thanks, wetech. I'll look into your demo!

Still though, I'm guessing the lack of replies here indicates no official support for touch input debugging before builds?

I'm guessing this has to do with the current lack of support for touchscreen event queries in the _input() singleton?

Anyone? ;-)

i want to make game for android going to try your Demo

5 years later