How To Add Mobile Controls in Godot (Tutorial)

preview_player
Показать описание
In this video, I will walk you step-by-step through the process of adding mobile touch controls to your mobile game using the Godot Engine.

In this video we'll focus on the mechanics of adding the mid-air dash to your player, rather than the level design.

If you're interested in adding a virtual joystick to your mobile game, check out the video here.

If you need help grayboxing or prototyping levels check out an earlier video I did demonstration how to quickly prototype (graybox) levels.

The button icons can be downloaded from here:

Godot Version - 4.2.1
Рекомендации по теме
Комментарии
Автор

This was very helpful, thank you!

Just a note, if you are doing this on mobile, dont change the settings at 3:16, or it will make it so you can't use the editor when you open your project later.

uhhh_Neon
Автор

Thank you very much for this guide, it was the only way I was able to understand this aspect of GODOT.

mahartet
Автор

Thanks for the tutorial. Keep emulate mouse from touch if running on mobile.

Rahul-vjru
Автор

I needed this for my Godot Project. Im working it on mobile and it's my first time trying to make one. Brackey's video did help me but i dont fully understand the whole thing yet. Might take me months

KNIGHT-
Автор

Thank you!!!! I really needed this for my game and this is my third time using Godot lol

spooklump
Автор

Wow where are you comming from, nice to see you here. THX A LOT

mayjo-games
Автор

I'VE BEEN LOOKING FOR THIS FOR LONG TIME MY LORD😭😭

rokluft
Автор

Brilliant and beautifully put together well done

Allanborn
Автор

Very Useful, On to the Point, No Crap!! 👍👍👍👍👍

harsh_pathak
Автор

I made the canvas layer a child of the controls node, but my buttons appear above the player, and they’re slightly smaller. They follow the screen but they’re out of place. In the test window they’re in the right place but on my phone screen it’s out of place. Also, I exported for web.

zu-tangclan
Автор

Buttons don't work and is not in camera😢

KukiNotGoodDough
Автор

Sorry if my English is bad! (I use Google translator)

I want to warn you about the problem I encountered! (And found the cause of the problem)

If you use TuchScreenButton - do not bind inputs to Func _inputs() at all. Bind Inputs to _process()

Otherwise, the inputs are repeated 2-3 times!

To understand what I'm talking about, write two such codes!

func Inputs():
if
var HP += 1
$Label.text = str(HP)

func _process():
if
var HP += 1
$Label.text = str(HP)

freedomtorussia
Автор

That will be good for godot mobile ❤
New sup

Sans_VIP
Автор

Dude, you helped me out so much! THANK YOU!!!

realfsi
Автор

Bhai pocket fm story daalna band kar diye kya

DEVILGAMER-wngn
Автор

Brodi when i run the proyect with "remote debug" (to test it on a phone) the controllers dont work, HELP!? ;(

fjhyeoo
Автор

Simple and easy love it, now time for me to break it to color it lmao

GeneralChrisGaming
Автор

Cool) Thank you. Please help me, I encountered a problem after unloading the game on Android. In the battle scene, I have 3 buttons, right and left, and an attack button. I need the phone screen to respond only to these buttons.. but now it shoots if you press anywhere on the screen.

luckyproject
Автор

Why its so blurd on you video i cant understand some things

EarnPlays_Å
Автор

Is it possible to use just joystick? Instead of left, right and jump buttons?

Ejay_cjvr
visit shbcf.ru