Тёмный
No video :(

Simple Touch Controls in UNITY without any Code 

The Game Guy
Подписаться 9 тыс.
Просмотров 33 тыс.
50% 1

Consider donating to help me keep this channel and website alive : paypal.me/supp... 💖
Support me on Patreon : / the_game_guy
In this video im gonna show you how to make simple touch controls for the player movement using one of my favorite assets on the asset store.
Simple Input System : assetstore.uni...
Check out how to make steering controls for car game in unity : • How to make Steering C...
and here are some more tutorials which might be useful :
How to throw knife in UNITY :
• How to throw knife usi...
How to make an AWESOME game Menu :
• How to make an AWESOME...
How to make level saving System :
• How to make a simple L...
Get Started unity 2d Shaders by BRACKEYS :
• Get started with 2D Sh...
How to make Health Bar in UNITY :
• How to make a HEALTH B...
How to make first person game in UNITY by BRACKEYS :
• MAKING YOUR FIRST FPS ...
Some interesting and fun Unity videos by DANI
I made an evil bot my friend :
• I Accidentally Made an...
I turned RU-vid into giant battle royal game :
• I Turned RU-vid into ...
I made a game in ONE HOUR :
• Making a Game in ONE HOUR

Опубликовано:

 

2 май 2020

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 108   
@PixelOtter0813
@PixelOtter0813 4 года назад
Thanks man my buttons were not working had my head on keyboard for god knows how long your method worked :D Thanks again
@AdrianosThePro
@AdrianosThePro 4 года назад
Very good tutorial. Thank you very much. I spent hours trying to find something this easy.
@The-cyber-imbiber
@The-cyber-imbiber 4 года назад
Thanks for the awesome tutorial! I'm not sure why those 7 people disliked your vid. I didn't find any problems with it.
@The-cyber-imbiber
@The-cyber-imbiber 4 года назад
I actually found a problem. The "jump" button is only on-release, which is pretty awful gameplay wise. There are no options in the button component to change this, which makes things very challenging.
@TheGameGuy
@TheGameGuy 4 года назад
@@The-cyber-imbiber Ahh My bad.. i must've confused the on click event with on pointer up i guess.
@astroapprentice3595
@astroapprentice3595 4 года назад
Thank you sooo much. It helped me a lot and i hope your channel grows fast because how good you are ;)
@hamezhmz
@hamezhmz 4 года назад
Thank you soo much this worked for my game!!
@bzoxx
@bzoxx 3 года назад
what's the name if you published
@hamezhmz
@hamezhmz 3 года назад
@@bzoxx it's called CannonBall play.google.com/store/apps/details?id=com.SyplisticGames.CannonBall
@sanketjoshi4616
@sanketjoshi4616 3 года назад
This is by far best tutorial for touch controls
@florescustefanut3912
@florescustefanut3912 3 года назад
I love you man.You are the best.You're video saved me from getting crazy
@hamzaodt3515
@hamzaodt3515 Год назад
Man, you're a life saver ❤❤❤❤❤
@hakancanyldrm2917
@hakancanyldrm2917 4 года назад
man you're a lifesaver, liked and subscribed.
@jakubpochron2667
@jakubpochron2667 3 года назад
I have problem with multiple jump. I watched your tutorial about "Environment & Jumping" and implement it in my code ("it work perfect, when I tapping space") but I don't know how to implement to jump button. Could You help me?
@deadevil_fst
@deadevil_fst 4 месяца назад
How to make them adjustable? I am trying to say like I want the jump in the middle of the screen like that is that possible in unity to do
@hasnaerden4626
@hasnaerden4626 3 года назад
you saved my life, thank you very much
@joker-hv3hb
@joker-hv3hb 26 дней назад
Thank youuuu bro❤
@tonhos2480
@tonhos2480 6 месяцев назад
thanks man, you have saved my game
@insidiusHOA
@insidiusHOA Год назад
Hi there. Everything works well except the animation walk doesnt work with the buttons. Works perfectly with the keboard but not when i use the buttons. Any idea why?
@paulonyeka
@paulonyeka 2 года назад
Work perfectly but Bro my my key board space bar is jumping once but the ui jump button is jumping infinitely please I want it to jump twice please 🙏 help me
@user-uk7ci1gs5x
@user-uk7ci1gs5x 8 месяцев назад
How can we not jump multiple times with simple input if any oneknows please help me to figure it out 😢
@ankitkanaujiya1731
@ankitkanaujiya1731 3 года назад
Thanqu bro ....u save my lot of time and confusion❤️❤️❤️❤️
@TheGameGuy
@TheGameGuy 3 года назад
Anytime mate..
@ankitkanaujiya1731
@ankitkanaujiya1731 3 года назад
@@TheGameGuy u know i have watched something around 90 videos but i did not make UI buttons and also its onclick function......❤️❤️❤️❤️❤️,luckily i got this video and i watched .....keep it up brother......... I suggest you to make full videos on car physics...so people get help....❤️❤️❤️...
@TheGameGuy
@TheGameGuy 3 года назад
@@ankitkanaujiya1731 Thanks mate.. i appreciate your support
@jeksim
@jeksim 3 года назад
this video really helped now my pc game has mobile support!!!
@Sebistyla22
@Sebistyla22 4 месяца назад
hello how can i use the Dpad with horizontal and vertical?
@luigi297
@luigi297 4 года назад
BEST RU-vidR, I LOVE U BRO... NO HOMO =]
@RadzoI
@RadzoI Месяц назад
Thanks Very Cool! 👍 (not a bot btw)
@SpeedLuffy
@SpeedLuffy 4 года назад
Jump button doesn't work sometimes. Can you show how you used bool in jump function?
@bambihax1846
@bambihax1846 3 года назад
Omg! Thanks so much bro I couldn't find this anywhere! And can you please give us the player movement code so we can copy and paste?
@Bogi494
@Bogi494 Год назад
Well you could pause the video and write it down 2:50 he even says it himself
@riski2628
@riski2628 Год назад
Bro, I'm making a topdown mobile version of the game. So, do you think it's possible to look for tutorials on YT, mostly the PC version
@yuvrajshandilya6313
@yuvrajshandilya6313 3 года назад
Thanku thanku thanku so much you dont know you solved my big problem
@TheGameGuy
@TheGameGuy 3 года назад
Glad I could help ❤
@chuaryuwei2211
@chuaryuwei2211 3 года назад
bro you have script? movescript
@jimacos10
@jimacos10 Год назад
what if you use photon pun. How do you do the jump when you spawn players
@gabrielbcl47
@gabrielbcl47 2 года назад
So nice man, thanks so much s2
@Bogi494
@Bogi494 Год назад
I have a question: Can these controls support multitouch (can I touch two buttons (for ex. jump and right) at the same time on the touchscreen)?
@Fabri2906
@Fabri2906 Год назад
yes i tried it
@Brai-niac
@Brai-niac Год назад
excellent video ✊✊✊✊ I just subscribed.
@arfanshaik764
@arfanshaik764 2 года назад
I am unable to add the code in my script for jumping. Please help
@ahmedseddik2748
@ahmedseddik2748 3 года назад
Thank you man
@MoonLiteNite
@MoonLiteNite 4 года назад
next do new input system version
@MoonLiteNite
@MoonLiteNite 4 года назад
oh you hearted me! You are committed now to make a video on it! Subbed
@hwanginYouppa
@hwanginYouppa 4 месяца назад
is it working for 3d if not please provide for 3d :(
@aoixe8042
@aoixe8042 Год назад
THANKKKSKSS
@khemziegamer4790
@khemziegamer4790 4 года назад
Thank you so much how can I flip my character using the left button
@Adam-jl1oc
@Adam-jl1oc Год назад
Thanks ❤
@user-uk7ci1gs5x
@user-uk7ci1gs5x 7 месяцев назад
Bro please tell me why after creating prefab jump button not working😢
@hamishhart6064
@hamishhart6064 3 месяца назад
I have the same have you got a solution for this yet?
@user-uk7ci1gs5x
@user-uk7ci1gs5x 3 месяца назад
@@hamishhart6064 nah
@hamishhart6064
@hamishhart6064 3 месяца назад
Solved it put the control canvas under the player as a child
@user-uk7ci1gs5x
@user-uk7ci1gs5x 3 месяца назад
@@hamishhart6064 I can't understand
@deathphoenix6387
@deathphoenix6387 3 года назад
Can you please make a tutorial for dpad too ? And thank you soo much
@nicolasgarcialozano722
@nicolasgarcialozano722 4 года назад
how to make the sprite change direction x?
@MellyTing
@MellyTing Год назад
-no code -tells to change code
@harlixfn465
@harlixfn465 4 года назад
can you send the whole script as a link so i can copy paste it?
@faridakhal7616
@faridakhal7616 4 года назад
The Jumpdoesnt work when i export it for some reason it workson pc when i click it with mouse?
@TheGameGuy
@TheGameGuy 4 года назад
What unity version are you using? and have you tried it on different devices? let ne know if the problem still exists
@faridakhal7616
@faridakhal7616 4 года назад
@@TheGameGuy yea so it works on pc when i click it with my mouse but it doesnt work when i click it on mobile and i did a debug.log statement and it is getting called out and i am using unity 2019.4.1f1 and thanks for answering so fast i did sub and lke everyvid thanks :D
@TheGameGuy
@TheGameGuy 4 года назад
@@faridakhal7616 Well thats odd.. i will try reproducing the error and come up with some solution and let you know. Thanks for your support
@MsDave1994
@MsDave1994 3 года назад
in my code, SimpleInput will not show, do you know wh?
@2Craft_
@2Craft_ 2 года назад
same
@triggerhappy9358
@triggerhappy9358 3 года назад
When I press the buttons nothing happens
@matsamsung06
@matsamsung06 4 года назад
Sir, please help I've spent 14 hours going through different tutorials trying to get these buttons to work I followed all your directions can you please help me?
@TheGameGuy
@TheGameGuy 4 года назад
Try using debug.log() statement to check if the method is even getting called or not.. if it is not make sure you have EventSystem in your hierarchy.. if the problem persist try removing and re adding the canvas and eventsystem repeat the first step.. hopefully it will work.
@matsamsung06
@matsamsung06 4 года назад
@@TheGameGuy The error i get is "Object reference not set to an instance of an object movement.jump ()
@TheGameGuy
@TheGameGuy 4 года назад
@@matsamsung06Have you referenced the rigidbody2d attached to the player? and make sure you get rigidbody2d inside of the start method like this : RigidBody2D rb; void start () { rb = GetComponent(); }
@matsamsung06
@matsamsung06 4 года назад
I added the statement and now there is no error but when I click the buttons nothing happens
@matsamsung06
@matsamsung06 4 года назад
Can you send a copy of the entire movement script so I know it's not wrong
@atatopcu19
@atatopcu19 3 года назад
urrrr the best
@Balakademi
@Balakademi 4 года назад
Good tutorials
@nidhinmathew2925
@nidhinmathew2925 3 года назад
working fine on pc but its not working on android why...????
@corpsdev1880
@corpsdev1880 2 года назад
how to Key Input UI for Fire1 ?
@g-dev7336
@g-dev7336 4 года назад
why the jump button sometimes i presse but doesnt work do you know why bro
@TheGameGuy
@TheGameGuy 4 года назад
try putting a debug.log statement in your jump method see if it actually getting called..
@g-dev7336
@g-dev7336 4 года назад
@@TheGameGuy it was a problem in checking if the character is grounded or not so i added a bool variable in the Jump fonction, now it works properly. thank you bro keep spreading knowledge bro 🌷🌷
@faridakhal7616
@faridakhal7616 4 года назад
@@g-dev7336 can u helpme what did u do i am a begginer and i dont know how
@uasleibrito6923
@uasleibrito6923 3 года назад
Obrigado! mesmo em inglês me ajudou muito!!!!
@wackytrio4613
@wackytrio4613 2 года назад
3:47 how to save the code?
@mohammedmushraf1578
@mohammedmushraf1578 Год назад
It works but player jump on air
@noureldinelkayal6917
@noureldinelkayal6917 4 года назад
Thaaaanks
@Froe12
@Froe12 2 года назад
thxxxxxxxxx
@luigi297
@luigi297 4 года назад
bro can u make a video : how to make a car shop, like the hillclimb game , pls broooo
@TheGameGuy
@TheGameGuy 4 года назад
Yeah sure, ill add that to my list
@beqa1906
@beqa1906 Год назад
Jump button isn't perfect, you have to release button to jump, when it should be jumping right away when you click on it
@Ashwin_1198
@Ashwin_1198 Год назад
Better use pointerevent
@vkenzhi6603
@vkenzhi6603 11 месяцев назад
Please give us the script
@kiditocerscent4479
@kiditocerscent4479 Год назад
ill just chill ok
@malikhassan8919
@malikhassan8919 4 года назад
Jump button is not working..
@TheGameGuy
@TheGameGuy 4 года назад
is it throwing some error?
@malikhassan8919
@malikhassan8919 4 года назад
No it shows no error.... But jump button is not working
@siz_clan8144
@siz_clan8144 4 года назад
Can I get the code I wanna copy paste😂😂
@meosart1758
@meosart1758 4 года назад
Am i the only one, who gets error "Name "SimpleInput" does not exist"?
@g-dev7336
@g-dev7336 3 года назад
bro did you find a solution
@meosart1758
@meosart1758 3 года назад
@@g-dev7336 Yep, switced to UE))
@g-dev7336
@g-dev7336 3 года назад
@@meosart1758 how bro?
@meosart1758
@meosart1758 3 года назад
I meant Unreal Engine and blueprints)
@paulonyeka
@paulonyeka 2 года назад
Please
@paulonyeka
@paulonyeka 2 года назад
Please 🙏🙏🙏🙏🙏🙏
@derp-face
@derp-face Год назад
MAN, ACTIVATE WINDOWS!
@nickolasb3453
@nickolasb3453 8 месяцев назад
"without any Code" 🤣🤣🤣🤣🤣
@nighthawk5331
@nighthawk5331 3 года назад
Are u Indian
@jezzychristian6110
@jezzychristian6110 3 года назад
CODES PLEASE
Далее
I Made the Same Game in 8 Engines
12:34
Просмотров 4 млн
They made a game about philosophy...
23:19
Просмотров 405 тыс.
Dear Game Developers, Stop Messing This Up!
22:19
Просмотров 704 тыс.
Can AI code Flappy Bird? Watch ChatGPT try
7:26
Просмотров 9 млн
I Solved The World's Hardest Maze (with Code)
9:54
Просмотров 133 тыс.
A truly 2D game isn't what you think it is...
13:23
Просмотров 40 тыс.
Making a Game With C++ and SDL2
8:14
Просмотров 1,7 млн
I Tried To Beat Minecraft Backwards
18:53
Просмотров 1,2 млн
PAUSE MENU in Unity
12:13
Просмотров 984 тыс.
A.I. ‐ Humanity's Final Invention?
18:30
Просмотров 4,1 млн