Haha, I missed your funny voice, the presentation was funny, wow you surprised me, this is something very useful, I honestly prefer to play games on pc than on mobile, but I know that a large number of people play on mobile devices, there are many multi-platform video games and that is fine for all tastes, thanks friend, I think that at some point this can help me. Wow your channel has grown a lot, congratulations, that shows that you are doing well, your lessons are short and effective, clear, the presentation images are attractive, long live the people of Poland!
Thanks for the feedback Crisisdarkness! I know your feeling! I always played on PC and like month ago I tried some mobile games. Need to say I was impressed. For example game "Oddmar" is like Rayman Orgin, but for mobiles and it was very fun to play :) It also to hot in Poland to play on PC xD
Thanks a lot! I didn't know about CanvasLayer, so I used to drop my controls in the Camera2D node so it will stay in the viewport, which is a terrible hacky fix...
thanks for the tutorial! I have just 1 question, is it possible to use the same method canvaslayer and add joystick to move or a joystick to attack for an isometric game? for example
yea, sure :) this method only activate the action that you added in code, so... you can do whatever you want after push the button. You can add main logic for a button to 2d platformer / 3d fps / isometric game / etc.
@@RafaFiedo Thanks bro !!! :D I could recommend you these ideas :- 1.) Platform Shooting game series. 2.) How to do dash like celeste (including effects) If you like any idea you can make a tutorial on it and thanks for your support... Keep it up bro 👍
I'm more loyal than he is he always suggests something that has already been uploaded by other TH-camrs Do something that hasn't done by others It will help you gain new views And he ain't loyal he asked other TH-camrs to make tutorial on dialog system too Like you
Thanks Luca :D TouchScreenButtons autodetect if the touch screen is available so you don't need to worry about it. Make sure that when you export the project to Desktop turn off the "Emulate Touch From Mouse" option on the Input Devices/Pointing. On this way phones will have the buttons and the desktop version don't
Please note that if you don't remove the option "Emulate Touch From Mouse" in the release build, desktop users will not see the buttons but the click on them will be triggered anyway, very strange behaviour!
Hey man, how would you make the buttons stick to left or right of the device? my right hand buttons are not close enough to my right hand thumb, they are fixed in place
Hi, Rafa, Thanks for your great tutorial, I have a problem, the problem is that on different screens the position of the touch buttons changes, how can I make them fixed in all screens? Thanks a lot ❤
Estimated developer, I'm writing to you again to mention something, regarding your "MOBA" series, I would like you to add another part, teaching on how to add 2 skills with their respective cooldowns, each one with different seconds, I think you could support yourself with the "Timer" node, it's something I have not tried to do, but good to see it from another developer. The first skill can deal damage in a straight line, like a raycast, like a fireball shot or something like that, with a cooldown of 3 seconds for example, the other skill can deal area damage (in a circular radius) with a cooldown of 6 seconds, etc. Thank you, your channel is on the right track
Have you played the "Heroes of the Storm"? The skills that you said is like the Gazlowe laser beam or the Ice ring from Jaina :) Thanks for the proposition, I'll save them :D Maybe I'll remake the Dota series, but in 3D? Who knows the future
@@RafaFiedo Yeah Heroes Of Storm was one of my favorite games, I'm glad you played it, wow doing it in 3d would be awesome, thanks for paying attention to the suggestions
Is it necessary to select buttons in input map ?? please answer me if you can like game jump in input map you add space if i don't add sapace it work ??
So what I realised from my game once the (Player) falls into the area 2D the character continues walking for some reason (But yeah starting a new game getting used to Animationplayer just having problems playing another animation after one is done)
Hi OSIRIS, is anyway I could help you? :D AnimationPlayer is kind of powerful. You can always add function at the end of animation which invoke the next animation or use TreeAnimation :)
hi, thanks! sorry, but do not understand question. What do you mean that movement is just left for joystick? You can use logic from video and connect 'left' action for button
@@RafaFiedo i fixed, tnx for the help tho if it wasnt for ur vid i wouldnt have known how to make the movement in my game, TNX again , have a great day
Hey, when I press my button, it turns to pressed, which implies that the button is working. But it isn't sending the action it is supposed to send. Also why is there an "&" symbol before the action?
Update: I DID IT!!! YOU ARE A GENIUS!!!! THANKS Hii thank you very much for this I can't make it work, I don't know why :(. Maybe It has something to do with the way my code is :(
I have a problem. The left arrow stays on the screen 😭. It acts as an item on the screen while other buttons like right and jump move with the camera and only the left arrow stays in its position
Excellent explanation, thank you, but regarding ( How to make MAIN MENU ) I am doing all the steps And then as soon as I start it tells me (get invalid 'bbcode' index (basically: 'RichTextLabel')) Please help as soon as possible 😭😭😭
Yes, I just answered, thanks 👍👍 I'll tell you the result, and if it doesn't work, that's okay. I could use another method. Waiting for your new videos 🥰🥰
@@RafaFiedo nvm i found the solution. Turns out the scene was corrupted however it was still working in pc but when i tried to open my rocket scene to check why it isn't shooting it showed scene is corrupted. (Im using godot 4) ALSO thank you very much for the vid i can now finally play the game w my phone
I cant Jump, but can to move right and left. editor/progress_dialog.cpp:173 - Do not use progress dialog (task) while flushing the message queue or using call_deferred()! editor/progress_dialog.cpp:206 - Condition "!tasks.has(p_task)" is true. Returning: canceled
Do you mean something like in Forager or Stardew Valley? To make a long story short each weapon should have a separated node. After pressing the input key you can turn off one and turn on the other one :) Do you have any specific examples on your mind?
Hey Ferplay! That is a nice idea for a tutorial, but first let me ask question. Have you tried official documentation? docs.godotengine.org/en/stable/getting_started/workflow/export/exporting_for_android.html Where have you stopped or which parts does not work? It would help me to make better tut
@@RafaFiedo Yes, I´ve read the documentation and I´ve watched many tutorials and non have solved the issue. I´m able to follow the hole process with debug keys, Adb and jarsigner but when I export it to my phone it never works(it gives an error message on the phone). Maybe the problem is how I´m doing these processes, but many of my friends have done the same thing folowing the tutorials and documentation and it still doesn´t work. Thanks for replying by the way, love your videos
Seems to be ok, After installing SDK I setup all path for adb, jarsigner, debug key and just copied the .apk to the phone and it worked. Only difference what I made is that I used Zulu-8 as the JDK. It's only because I had this java version from other project. Never tested Oracle. Not sure if that make any difference, but do you use GLES2 or GLES3? Maybe some phones don't support GLES3. I just started to discover the Godot export to android :)
That "phone dropping" hurted me
Do not worry Pistacho!
This phone is strong nearly as nokia 3310 ;)
@@RafaFiedo😆
Thank you so much for the tutorial!
I was very struggling making the mobile controller. I was suprise it was actually that simple
Thanks for the feedback Della!
I was also surprised that making buttons is so easy :P
Yeah, I'm actually developing on Android this tutorials are really useful when you don't have a keyboard and a mouse to work with.
Man, it is waaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaay easier than I thought it was. Thank you!
I also was surprised :D
Oh my goodness thank you so much I appreciate all that you do just to share knowledge with people I can't thank you enough 😭🙏
oh,
I do not know what to say :P
Thanks!
OMG as an ex-Unreal engine div, i can confirm that this is so fkn easier than Unreal. Man i love Godot so much
you are my savior i thought it wold take hours but didnt and i liked how u presented it😁👍👍
Glad I could help ;)
Thanks, i did not know how to make mobile controls i thought it needed a lot of coding but it was this easy
:D
Thank you man. It works! I´m as happy as if I had figure it out all by myself jaja
Congratulation ;)
Without a doubt my favourite Godot content creator, always keeping it simple ✌🏾
Thanks for kind words Duene! :D
Hope all will be simple to understand
Nice!! Very good toturial👌
Thanks a lot Gecko 😊
Thank you so much for the tutorial + what about the main menu do i have to make new buttons for it?
You're welcome! :D
About main menu, I have a special tutorial for it, did you check it?
Exelent tutorial Rafa Fideo
Thanks was really helpful
Haha, I missed your funny voice, the presentation was funny, wow you surprised me, this is something very useful, I honestly prefer to play games on pc than on mobile, but I know that a large number of people play on mobile devices, there are many multi-platform video games and that is fine for all tastes, thanks friend, I think that at some point this can help me. Wow your channel has grown a lot, congratulations, that shows that you are doing well, your lessons are short and effective, clear, the presentation images are attractive, long live the people of Poland!
Thanks for the feedback Crisisdarkness!
I know your feeling! I always played on PC and like month ago I tried some mobile games. Need to say I was impressed. For example game "Oddmar" is like Rayman Orgin, but for mobiles and it was very fun to play :)
It also to hot in Poland to play on PC xD
You did great !
Thanks a lot! I didn't know about CanvasLayer, so I used to drop my controls in the Camera2D node so it will stay in the viewport, which is a terrible hacky fix...
I'm glad that it helped you :)
In my first game I also was using this hacky fix so I know the pain :D
Yea, CanvasLayers are perfect for UI
awesome tutorial ! thanks ! :)
You're welcome Ivan :D
thanks for the tutorial! I have just 1 question, is it possible to use the same method canvaslayer and add joystick to move or a joystick to attack for an isometric game? for example
yea, sure :)
this method only activate the action that you added in code, so... you can do whatever you want after push the button.
You can add main logic for a button to 2d platformer / 3d fps / isometric game / etc.
that tutorial saves me, thanks
No problem ;)
Always like your videos...
Waiting for another tutorial
Thanks you Infinity :D
It's great there are loyal viewers
@@RafaFiedo Thanks bro !!! :D
I could recommend you these ideas :-
1.) Platform Shooting game series.
2.) How to do dash like celeste (including effects)
If you like any idea you can make a tutorial on it and thanks for your support...
Keep it up bro 👍
cool ideas, I'll save them :D
Thanks!
I'm more loyal than he is he always suggests something that has already been uploaded by other TH-camrs
Do something that hasn't done by others
It will help you gain new views
And he ain't loyal he asked other TH-camrs to make tutorial on dialog system too
Like you
@@gengami check out devis dev he has already uploaded a shooting platformer tutorial
Stop wasting his time with old ideas wich only benefits you
man, you are the best!
Going to need this cuz i am making games on the mobile editor
good luck!
That is what i needed thank you 👍!!
Glad it helped Opomomlslsa! :D
very thanks, me and my friends will play our game in car, you know built in screen, + i like your english goodbay
thanks :D
Hablo poco inglés pero "Thank you very much for the tutorial"
you're welcome ;)
Thank you. 💙💙💙💙
you're welcome!
Very useful! Is there a way to show/hide the controls only when the device is mobile?
Thanks Luca :D
TouchScreenButtons autodetect if the touch screen is available so you don't need to worry about it.
Make sure that when you export the project to Desktop turn off the "Emulate Touch From Mouse" option on the Input Devices/Pointing. On this way phones will have the buttons and the desktop version don't
haha I just tried to do this and forgot to mension that you need also change the "Visibility Mode" to TouchScreenOnly ;)
@@RafaFiedo yes, I enabled that option, thanks!
Please note that if you don't remove the option "Emulate Touch From Mouse" in the release build, desktop users will not see the buttons but the click on them will be triggered anyway, very strange behaviour!
@@LucaPassini oh, didn't know that. Thanks for sharing :)
I always turned off the "Emulate"
Hey man, how would you make the buttons stick to left or right of the device? my right hand buttons are not close enough to my right hand thumb, they are fixed in place
Stay calm
i have a question does normal button work on touch screen to please i need to know..im using textureButton
Can you make a tutorial on how to detect touch on A kinematic body or any other node without buttons?
thank youuuuu!!
np!
Hi, Rafa, Thanks for your great tutorial, I have a problem, the problem is that on different screens the position of the touch buttons changes, how can I make them fixed in all screens? Thanks a lot ❤
Hi!
Do you still have that issue?
Have you tried to 'anchor' the button?
You can for example anchor button to the right/bottom corner of screen
@@RafaFiedo Thanks brother I did it and the problem is fixed now 🙏
Is it possible in Godot 4????
yea ;)
Yes?????? Or NOOOOOOO??????????
yes?
Muito obrigado!😛👍
Estimated developer, I'm writing to you again to mention something, regarding your "MOBA" series, I would like you to add another part, teaching on how to add 2 skills with their respective cooldowns, each one with different seconds, I think you could support yourself with the "Timer" node, it's something I have not tried to do, but good to see it from another developer. The first skill can deal damage in a straight line, like a raycast, like a fireball shot or something like that, with a cooldown of 3 seconds for example, the other skill can deal area damage (in a circular radius) with a cooldown of 6 seconds, etc. Thank you, your channel is on the right track
Have you played the "Heroes of the Storm"?
The skills that you said is like the Gazlowe laser beam or the Ice ring from Jaina :)
Thanks for the proposition, I'll save them :D
Maybe I'll remake the Dota series, but in 3D? Who knows the future
@@RafaFiedo Yeah Heroes Of Storm was one of my favorite games, I'm glad you played it, wow doing it in 3d would be awesome, thanks for paying attention to the suggestions
@@Crisisdarkness Hots still is one of my favorite game :D sometimes I play it.
Sadly seems that blizzard turned away from it :(
Is it necessary to select buttons in input map ??
please answer me if you can
like game jump in input map you add space
if i don't add sapace it work ??
thanks alot
Thanks for the feedback :D
Omg Thanks
np ;)
Rafa, can u make the pause button tutorial for android? Your tutorial always simple and cools
Thanks :D
Did you try to merge knowledge from my "how to pause" video and this one?
It should be very familiar to add pause to android with the button
Sir thank you for this video but can you show the all code?
hey!
Unfortunatly I do not have code for this tutorial anymore ;/
Maybe I will update tut for Godot 4? We'll see ;)
Ok
But sir I mean the code of these mobile controls because I cannot continue my project only for mobile controls
thanks
No problem :D
So what I realised from my game once the (Player) falls into the area 2D the character continues walking for some reason (But yeah starting a new game getting used to Animationplayer just having problems playing another animation after one is done)
Hi OSIRIS,
is anyway I could help you? :D
AnimationPlayer is kind of powerful. You can always add function at the end of animation which invoke the next animation or use TreeAnimation :)
@@RafaFiedo well guess I'll be trying it out... but for now is there any way to contact you incase I run into problems or need help in the future
@@TrashLord19 yea sure, Discord server is open for everybody :D (links are on the descriptions)
yoyooy i cant seem to find the code dawg, great tut btw i am like all done just the movment is left for the Joysticks, do u mind helping me?
hi, thanks!
sorry, but do not understand question.
What do you mean that movement is just left for joystick?
You can use logic from video and connect 'left' action for button
@@RafaFiedo i fixed, tnx for the help tho if it wasnt for ur vid i wouldnt have known how to make the movement in my game, TNX again , have a great day
Hello, Borat!)
Hey, when I press my button, it turns to pressed, which implies that the button is working. But it isn't sending the action it is supposed to send.
Also why is there an "&" symbol before the action?
nvm my bad my code had the default "ui_left" and "ui_right"
@@parthchaudhari2766 :D
cool that you have fixed it!
the shape is determined automatically?
Do you mean shape of controls? It depend of the shape of texture
我有一个戈多项目,需要在不同的屏幕比例上运行。我希望我的触摸屏按钮始终位于右下角。我该怎么办?我应该将触摸屏按钮作为控制节点的子节点放置吗?谢谢。
you need to anchor it to the right bot corner ;)
My buttons are not moving with camera ... Any solution??
do you still have this issue?
0:10 whyyyyy
do not worry, it's nearly strong as nokia 3310 :P
@@RafaFiedo 😂 you're great lmaoo
Can i download these textures
hm... why not, I can upload them on git.
Will it be ok?
@@RafaFiedo sure. Thanks
@@RafaFiedo i have all code but no textures
@@Servant_of_Allah_Most_Merciful you can find it on github.com/rfiedorowicz/GodotProjects/tree/master/2021_07%20Mobile%20Tutorial%20Textures/mobile ;)
Player move code?
Update: I DID IT!!! YOU ARE A GENIUS!!!! THANKS
Hii thank you very much for this I can't make it work, I don't know why :(. Maybe It has something to do with the way my code is :(
Great that you managed it :D
Does it work on 3d games?
it depends ;)
the logic between logic and action should work,
the code for get direction can be little different because of 3D
@@RafaFiedook,ty :D
please make video about mobile joystick controller
Don't know why, but YT made this comment "hold to review"and I just see it.
The joystick video is already on the channel ;)
How to i make it pop up on certain devices like it shows up on phone but not xbox
you should have property called 'visibility mode' (under Action) and you can select only when touchscreen enable ;)
mine doesnt fit to screen
thank's ;)
you're welcome :)
I have a problem. The left arrow stays on the screen 😭. It acts as an item on the screen while other buttons like right and jump move with the camera and only the left arrow stays in its position
I didn't have this issue before.
@@mustafaonly1127 Do you use CanvasLayer for it? If you use buttons on CanvasLayer they should work independently of game cameras
@@RafaFiedo I did. I'll try a new project and check if the problem stays the same. Thanks for your reply appreciated
@@mustafaonly1127 np ;)
you are welcomed also in our Discord server to share progress!
How u make that button.....????...
Any free resources
hi Song :)
Which button would you like to create?
@@RafaFiedo i want to make sounds and voice editor using gogot c#.....i quest save system and oscalitor......tq reply
@@mostsoul5818 oh sorry, don't have knowledge about godot c# ;/
@@RafaFiedo can u make its in gd scrip....its ok.....
@@mostsoul5818 not sure what you want :)
Do you want to add voice and sounds to dialogues?
Bro how to make these controls responsive
if you anchor them to borders, they should stay there. If you want to resize them depend on screen size... there is little more to do ;)
Excellent explanation, thank you, but regarding ( How to make MAIN MENU ) I am doing all the steps
And then as soon as I start it tells me (get invalid 'bbcode' index (basically: 'RichTextLabel'))
Please help as soon as possible 😭😭😭
Hey again ;)
answered in the Main Menu tutorial comment
Yes, I just answered, thanks 👍👍
I'll tell you the result, and if it doesn't work, that's okay. I could use another method.
Waiting for your new videos 🥰🥰
бл я хоть и русский но я всё понял с первого раза
в отличие от русского good!!!!!!
nice:)
Works completely fine in pc but when i export to apk in android it doesnt work, help pls
are you using godot 3 or 4?
@@RafaFiedo nvm i found the solution. Turns out the scene was corrupted however it was still working in pc but when i tried to open my rocket scene to check why it isn't shooting it showed scene is corrupted. (Im using godot 4)
ALSO thank you very much for the vid i can now finally play the game w my phone
@@wdym9864
Great that you managed to solve that!
The jump button is not working on godot 4.0, can you help me? I'm Desperate ;--;
Hi! Do you still have issue here?
Do you have any console logs?
@@RafaFiedo yes, can you do a tutorial for Godot 4.0 pls?
@@_nyx_the_killer No promises, but who know the future ;)
2:22 yes
haha, good to know :)
I cant Jump, but can to move right and left.
editor/progress_dialog.cpp:173 - Do not use progress dialog (task) while flushing the message queue or using call_deferred()!
editor/progress_dialog.cpp:206 - Condition "!tasks.has(p_task)" is true. Returning: canceled
هل هذه الاكواد مكتوبة بلغة ++C
I'm using GDScript here
How can we make change character..i mean i can change the character or weapon 🤔
Do you mean something like in Forager or Stardew Valley?
To make a long story short each weapon should have a separated node. After pressing the input key you can turn off one and turn on the other one :)
Do you have any specific examples on your mind?
@@RafaFiedo for example "Super cat bros "game we can choose a cat and every cat has special power...i wish you understand that 😅
I see, it's similar also to Trine series :)
Thanks for idea!
@@RafaFiedo I'm the one who has to say that
bro arrow png ?
yes
Moreeee
will be! ;)
Bro how to it responsive
If you anchor them to borders, they should stay there.
Noice. Haha
:D
please teach how to export your game to android
Hey Ferplay!
That is a nice idea for a tutorial, but first let me ask question.
Have you tried official documentation?
docs.godotengine.org/en/stable/getting_started/workflow/export/exporting_for_android.html
Where have you stopped or which parts does not work?
It would help me to make better tut
@@RafaFiedo Yes, I´ve read the documentation and I´ve watched many tutorials and non have solved the issue. I´m able to follow the hole process with debug keys, Adb and jarsigner but when I export it to my phone it never works(it gives an error message on the phone). Maybe the problem is how I´m doing these processes, but many of my friends have done the same thing folowing the tutorials and documentation and it still doesn´t work. Thanks for replying by the way, love your videos
Seems to be ok, After installing SDK I setup all path for adb, jarsigner, debug key and just copied the .apk to the phone and it worked.
Only difference what I made is that I used Zulu-8 as the JDK. It's only because I had this java version from other project. Never tested Oracle.
Not sure if that make any difference, but do you use GLES2 or GLES3? Maybe some phones don't support GLES3. I just started to discover the Godot export to android :)
@@RafaFiedo I'm using GLES3, I'll testing it with GLES2
@@RafaFiedo Changing it to GLES2 didn´t work :(
Ending 😂
magic :D
No work
Error state
@@valerianus_200 that error did you get?
What version of Godot are you using?