How to add Virtual Joysticks for Mobile Platform

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Scyro

I’m new to this godot 3 script change How can i control my game work for mobile devices aka android and ios? I also researched about this question but they are all for godot 2. I just want my character to move left and right and jump i have my KinematicBody2D scripted for movement, but i want it to be reconfigured for a mobile device. then i don’t even know how to setup the gui overlay for left, right and jump button. so i need help with that.

:bust_in_silhouette: Reply From: gswashburn

I converted some code a while back just for this purpose. Please check out the following demo on GitHub. It should get you going in the right direction. You will have to add the jump functionality using a separate touchscreen button or maybe using multitouch (check for 2 touches and jump) GitHub - gswashburn/Analog-Stick-Demo: Godot 3 - Analog Stick Demo.

Thanks. I have it working.

Scyro | 2018-07-16 15:33