Mobile Touch Controls - 2D Platformer

preview_player
Показать описание
In this video, I will show you how to use UI Buttons to move a 2D character, make him able to jump and shoot.

--------------------------------------------------------------------
✅ My current Productivity Setup 👇:

--------------------------------------------------------------------

FOLLOW ME:
--------------------------------------------------------------------

► All content by GDTitans is 100% free. I believe that education should be freely available to everyone.
Рекомендации по теме
Комментарии
Автор

it works perfectly fine in Editor in unity but in mobile the buttons dont work at all how do you fix that?

jeffreyexpectacion
Автор

For everyone who doesn't find button. It's in legacy in UI

MASNine
Автор

Could this be added to any 2D game? I've seen very few 2D game tutorials specifically for mobile, and they typically code for the arrow keys on a regular keyboard. Could this be a replacement for that?

lindsayhaslam
Автор

Touch controls are not working properly.what should i do. Pls reply

sprajapati
Автор

when do you make the script "On Screen Button", im looking all over for it

Josue-Arreaga
Автор

Thanks for tutorial, and I have a question, I try the game on my phone, everything working fine, but sometimes The touch controls stucking or lagging, do you have idea about it?

gory_t
Автор

i am facin an issue here. when i jump while moving left or right, the player stops moving and does a straight jump! any workaround here?

JayRavalani
Автор

small addition, everything works perfectly fine, as long as im playing on pc. Once i run it on mobile, my controls (specifrically with the arrow keys) completely shit the bed. My project is configured for android and i cant seem to find the reason why my touch controls are not working on mobile. The fact that it runs perfectly on pc makes it also very hard to debug. Any ideas perhaps? Getting kinda desperate here :(

nielspalmans
Автор

MissingReferenceException while executing 'performed' callbacks of 'Land/Jump[/Keyboard/space, /Keyboard1/space]'
MissingReferenceException: The object of type 'Rigidbody2D' has been destroyed but you are still trying to access it.
How to fix this?

kozmobotgames
Автор

Where does the OnScreenButton component came from?

theWEAREANIME
Автор

Can you create a boss fight and the see how to create multiple levels and create a grenade and show them on top of the screen

bilalakkari
Автор

Oh thank goodness for you and your tutorial!!!
I was fretting about Android version of my game and you just took a HUGE load off my shoulders!
Thankoo thankoo thankoo!!!
Please tell me, why is my left arrow and right arrow both going right?? I have chosen the right inputs.

Jeea
Автор

Can you make tutorial that player automatically go in next level and play game after completed 1st level. Pls make . Pls reply

sprajapati
Автор

Jump button works for me but not the horizontal keys! HELP!

sayhan
Автор

In which video did you code the player control script

DeathReality
Автор

what about the jump player control, set to jump then assign binding path to "spacebar" ?? doesnt work.

dixiem
Автор

Thank you very much, i hope to teach us to make " unclock levels "

-sociology
Автор

can you create a video to how create a health bar for the player and when the zombie attack him the player will take a damage
also how to create a ai shooter in 2d also the player take a damage (or you can't do that !!)

bilalakkari
Автор

استاذ شاكر كان عندي سؤال
دلوقتي كل ما اعمل build يقوللي gradle build failed
😭😭😭😭اعمل ايه😭😭😭😭😭

malikthetalentmaker
Автор

hey
i dont know if you will read this
but if you do kindly help me out
my buttons for movement are working fine in the desktop but once i build them on android .. they are not working .. everything else is working fine but only the buttons are not working are building and testing on android device .. can you help me out please :)

clashergaming