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.

in Engine by (23 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.

by (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.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.