0 votes

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.

asked Jul 15, 2018 in Engine by Scyro (22 points)

1 Answer

+1 vote

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) https://github.com/gswashburn/Analog-Stick-Demo.

answered Jul 16, 2018 by gswashburn (202 points)

Thanks. I have it working.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.