2D Top Down Movement UNITY Tutorial

Поділитися
Вставка
  • Опубліковано 2 лис 2024

КОМЕНТАРІ • 594

  • @Lipapalidev
    @Lipapalidev 9 місяців тому +17

    BRO I love you instead of just showing the code you also explain it even though it's 3 years old this is one of the few tutorials I respect

  • @niblitsbopski6586
    @niblitsbopski6586 4 місяці тому +3

    I know how many comments have already said the same thing but this was shockingly concise and well made. You perfectly quickly explain everything so well. You've earned my subscription sir.

  • @theduckyt9357
    @theduckyt9357 3 роки тому +112

    Simple, straight to the point and only 7 minutes long. Love it.

    • @oprisdan
      @oprisdan 10 місяців тому +1

      That's what she said.

  • @koshiinahole1003
    @koshiinahole1003 3 роки тому +12

    People who gives their knowledge for free, r a other kind of hero. U r kinda saving lives if I think deep about it. Gj!

  • @GeckoTech_Engineer
    @GeckoTech_Engineer Рік тому +9

    I have a whole lot of concept art for a 2d top down game and these tutorials really helped, there is a lot of stuff I’m still trying to figure out like how I’m going to animate my sprites and a lot more, but I saved some of your tutorials to a playlist I will watch them all on repeat until I can understand it well

  • @patches163
    @patches163 4 місяці тому

    im making a small indie game with 2 of my friends and i have NEVER touched unity in my life and this tutorial helped me figure out movement enough to get the basics of the game

  • @DanOfMostTrades
    @DanOfMostTrades 3 роки тому +45

    I appreciate your speed and conciseness! Other tutorials are finishing up their promotions and introduction at 7:20

    • @sofisticated1940
      @sofisticated1940 2 роки тому +3

      *cough* *cough* brakeys *cough* *cough"

    • @DarioMarken
      @DarioMarken 2 роки тому +1

      @@sofisticated1940 Don't disrespect the legend himself.

    • @IFCreativeAlt
      @IFCreativeAlt 2 роки тому

      kids hating on brackeys

  • @AsanpiCh
    @AsanpiCh 3 роки тому +31

    Short, simple, and it works! As an artist trying to learn code, thank you!

  • @wickjon1844
    @wickjon1844 2 роки тому +47

    0:58 Small tip: if you make simple 2d top down game and don't need gravity or physics that much, you should change rigidbody2d -> body type from Dynamic (default) to Kinematic instead. So you don't have to worry about forgot set this thing up or something made up. Good luck on your journey!

    • @koolkiller35
      @koolkiller35 2 роки тому +2

      I'm sorry I'm new to coding and don't understand. Can you explain that in a bit more detail?

    • @wickjon1844
      @wickjon1844 2 роки тому

      ​@@koolkiller35 You can refer here in 1:28 and 2:09 ua-cam.com/video/xp37Hz1t1Q8/v-deo.html
      Also you have to know that in unity when you build something in your scene event you build in 2D world basicly it's still happen in 3D that why you can switch it's properly and you can check in RigidBody2D -> Constraints -> Freeze rotation Z which is height value of 2D object in 3D world to prevent it's had strange behavior when interacting and have behavior of 3D world like floating around.

    • @leaf4645
      @leaf4645 2 роки тому +4

      ​@@koolkiller35in the rigid body where u adjust the gravity, there is an potion called "bodytype" change that from dynamic to kinematic

    • @TheWeatherMan2
      @TheWeatherMan2 Рік тому

      Good shout honestly

  • @iamcheezeYT
    @iamcheezeYT 4 роки тому +19

    best tutorial! telling my friends to come here if they want to learn game dev

  • @jacobhuneault3420
    @jacobhuneault3420 9 місяців тому

    Had to rewatch on .75 and .5 speed and pause, but this is not a video about copying your code, simple explanations, right to the point, even just enough of extra info about some codeline, keep it up and thank you for your help

  • @PolyxTheWise
    @PolyxTheWise 10 місяців тому +1

    You, good sir, are a freaking LIFE SAVER. I was looking everywhere for a simple tutorial on this, and by God, you made it stupidly easy. Thanks to you I overcame a simple, yet seemingly insurmountable obstacle. THANK YOU! :)

  • @plutoniumbellamy1912
    @plutoniumbellamy1912 2 роки тому +5

    This is perfect for underwater movement. Thank you for this tutorial!

  • @blaze4074
    @blaze4074 3 роки тому +5

    FINNALY a video that will work! i've lost my hair trying to find a top down movement tutorial

  • @toiletdroid5914
    @toiletdroid5914 3 роки тому +7

    Nice video. Amazing how you can get full movement for top down in a 7 minute video. A lot of other tutorials drag on for like half an hour to achieve the same outcome. This is one of my 5* tutorials, which I keep in a folder for future reference.

  • @joemullen7789
    @joemullen7789 2 роки тому +6

    Thanks so much for this tutorial! I'm getting back into game dev after a long break and this tutorial was super helpful to me!!!

    • @BMoDev
      @BMoDev  2 роки тому +4

      Love to hear it, keep going! Feel free to share your progress in the discord would love to see what you make!

    • @Zephyr314
      @Zephyr314 2 роки тому

      same here!

  • @김우시원
    @김우시원 5 місяців тому

    Everything that I needed was here all the time...thanks for sharing your skills.

  • @keventy6114
    @keventy6114 4 роки тому +6

    Thanks! I did this and linked it with the Animator StateMachine- with the Horizontal and Vertical inputs - to make very smooth-looking movements.

    • @BMoDev
      @BMoDev  4 роки тому +3

      Ayy nice work! You're ahead of the game, that was going to be a followup video :)

    • @keventy6114
      @keventy6114 4 роки тому +1

      @@BMoDev That's great to hear! Looking forward to watching the next.

  • @laughingpanda95
    @laughingpanda95 Рік тому +1

    anyone who got stuck on the scripting bit. like me. i was missing the extensions in visual studio code. you just need the c# one but you'll also need .net framework 7 and the 4.7.1 devpack ( forgot full name) once i got those i had all the needed links after that it was a breeze. also at end my character wouldn't move and i had all the spelling and so on correct in the code the issue was super simple. i had to capitalise the H and V in horizontal and vertical. drove me mad but wanted to share because this video works but my road was bumpy cause those factors. liked and subbed mate spot on thank you

  • @NamNguyen-uu8yq
    @NamNguyen-uu8yq 2 роки тому

    TNice tutorials is THE most helpful tutorial on UA-cam imo. I am starting production in Hardstyle, and I find soft soft really useful

  • @martindotts8262
    @martindotts8262 4 роки тому +10

    I love how straight to the point this is. :)

  • @nikhilshelke9398
    @nikhilshelke9398 2 роки тому +3

    Thank you so much for this tutorial. I am currently working on a procedurally generated dungeon game, and this helped me get started. Great video!

    • @BMoDev
      @BMoDev  2 роки тому +1

      Appreciate it! Would love to keep tabs on your game

  • @stipularbench1534
    @stipularbench1534 4 роки тому +6

    OMFG the best tutorial easy to follow and I learned soooo much KEEP GOING

    • @BMoDev
      @BMoDev  4 роки тому +1

      No doubt, glad it helped!

  • @unexpectedcringe4575
    @unexpectedcringe4575 2 роки тому

    getting watched latered for the rest of my days thank you

  • @mattheww1072
    @mattheww1072 4 роки тому +2

    Great tutorial. If anyone's Vector2 is an issue, delete "using System.Numerics;" if it's in your Visual studio code. That fixed it for me

    • @BMoDev
      @BMoDev  4 роки тому

      Thanks for sharing!

  • @bhartisharma139
    @bhartisharma139 2 роки тому +4

    FYI you can just put * speed in the process input float and put rb.velocity = moveDirection in void move and it will work just as fine as rb.velocity = new Vector2 (movedirection.x, movedirection.y)

  • @Sam4Progress
    @Sam4Progress 7 місяців тому

    I was stuck using AddForce from a different tutorial, and I couldn't for the life of me figure out, or find the syntax for other movement types. Not only that, even had I found Velocity, the way it is implemented is different than the AddForce was... so I would've been lost regardless! Now, we have a very straightforward, and easy to understand multidirectional movement!

  • @toastedtoastyboi
    @toastedtoastyboi 3 роки тому +3

    im learning game design for a class project and this was helpful. thank you!

  • @jazzyjaiden
    @jazzyjaiden 2 роки тому +1

    More than a year old but this still holds up! Only nitpick is I wish you'd linger on your code for a second or two after you've finished typing rather than just zipping back over to Unity, gives me a chance to pause so I can fully read what you've done.

  • @cardario5323
    @cardario5323 2 роки тому +1

    It scares me how good theses tutorials are!

    • @BMoDev
      @BMoDev  2 роки тому

      Wow appreciate it

  • @everything-we9rc
    @everything-we9rc 2 роки тому +1

    surprisingly hard to find videos about top down movement and this tutorial was very helpful

    • @BMoDev
      @BMoDev  2 роки тому +1

      I've always thought that too, np

  • @zippich7495
    @zippich7495 4 роки тому +1

    hi i am russian and i don’t even know if i am writing correctly because through a translator. i didn’t think i would switch to english courses but i switched thanks to you

    • @ICapCorn
      @ICapCorn 3 роки тому

      Кстати я тоже русский

  • @amandacollins7392
    @amandacollins7392 4 роки тому +6

    Super easy to follow tutorial!! We STAN Bmo 😎

    • @BMoDev
      @BMoDev  4 роки тому +3

      your comments actually make me laugh everytime

    • @Patrick-il3uy
      @Patrick-il3uy 4 роки тому

      Not really. I'm doing Unity the first time and he is just jumping around. It should be slower for a tutorial.

  • @florians.6402
    @florians.6402 Рік тому +2

    It would be really helpful when you jump around in the code to show the finished line of code for longer than 1ms before cutting to the next frame

  • @kuyabonbondevlog1044
    @kuyabonbondevlog1044 4 роки тому

    Thank you, your tutorial is the only one working on all of the videos I searched

  • @thecanaeggplant2937
    @thecanaeggplant2937 4 роки тому

    i literally love you. Thx for this, pls keep making short videos like this. For example make a one tutorial about how to make 2d map work properly, making game interface etc.

  • @CASMANWHAT
    @CASMANWHAT 3 роки тому +3

    LOVE how you explains stuff. so clear!

  • @dhruvsrivastava9846
    @dhruvsrivastava9846 4 роки тому

    Omg this is so much simpler and a better explanation than 3 other videos

  • @xteclisx27
    @xteclisx27 4 роки тому +6

    Short and concise! Thank you!

  • @viksingg6661
    @viksingg6661 Рік тому

    Ty bro, short tutorial, not some complicated code, this is great Im leaving like and subscribe!

  • @minayouness
    @minayouness 2 роки тому +1

    Thank you so much for this tutorial

    • @BMoDev
      @BMoDev  2 роки тому

      You bet hope it helped!

  • @jjadter8139
    @jjadter8139 3 роки тому +1

    Thank you so much for explaining why you did the things you did! It really helped me learn!

  • @thatrealguylogan
    @thatrealguylogan 2 роки тому +1

    Wow thank you so much, i found it hard to follow on in other peoples videos but you did a really good job at explaining the code and how it is used, so thanks a lot!!!

  • @fania676
    @fania676 2 роки тому

    It's the best unity tutorial video I ever seen

  • @johndenis8526
    @johndenis8526 Рік тому

    THANK YOU VERY MUCH GOD BLESS YOU. THE ONLY TUTORIAL I COULD FOLLOW AND IT WORK.

  • @sahildesai4221
    @sahildesai4221 2 роки тому +1

    Loved the way you explain things! subbed ;)

  • @Edward-Not-Elric
    @Edward-Not-Elric 3 роки тому +68

    Went way too fast at times and even cut away like 1 frame before you finished typing a line of code but I was able to make it work.

    • @Ivy_olive_cats
      @Ivy_olive_cats 2 роки тому

      I can't type I need help

    • @sssquirrelyalt
      @sssquirrelyalt Рік тому

      ​@@Ivy_olive_catswhy are you coding then

    • @GarySSBM
      @GarySSBM 11 місяців тому

      Omg, glad you’re ok!

    • @werejustgaming
      @werejustgaming 9 місяців тому

      Yeah my problem but I can't make it work

  • @santaman9319
    @santaman9319 2 роки тому

    Thank guy, have a good day

  • @TheDoomLordd
    @TheDoomLordd 3 роки тому

    These videos help so much, my mind just gets stuck somedays and its hard to make even a simple start

  • @ghostlygeeks5991
    @ghostlygeeks5991 4 роки тому +8

    I simply can't understand why you have 2 dislikes, thank you so much !!!

    • @BMoDev
      @BMoDev  4 роки тому +1

      Appreciate the kind words! Hope it helped

    • @Develop3
      @Develop3 4 роки тому

      @@BMoDev i cant add my script to player :/
      edit: or i can add it on the player

    • @alexanderschmid6251
      @alexanderschmid6251 4 роки тому

      @@BMoDev i wanted to make movement like in zooba or in brawl stars sry but this didnt help me

    • @pengy5771
      @pengy5771 4 роки тому

      Now he has 19

    • @ghostlygeeks5991
      @ghostlygeeks5991 4 роки тому

      ​@@alexanderschmid6251 If you can't make use of this video to make such easy mouvements maybe it's time to rethink your programming skills and creativity just saying... This video is perfect since he uses physics and the inputs are perfectly managed (I'm not insulting btw it's just what I think)

  • @simi8220
    @simi8220 2 роки тому

    Thank you so much for the quick and easy explanations.

  • @alfredfind1219
    @alfredfind1219 4 роки тому +6

    This is a very simple and good tutorial! I had trouble finding a tutorial that was easy to follow so thank you very much :)

    • @BMoDev
      @BMoDev  4 роки тому

      Awesome, happy to hear that!

  • @gettinjcob4206
    @gettinjcob4206 3 роки тому +1

    this is the most helpful vid in movement thanks

    • @BMoDev
      @BMoDev  3 роки тому +2

      Glad it helped!

  • @iconic2310
    @iconic2310 Рік тому

    thanks for showing finally able to get my little rpg going!

  • @togashi-azul
    @togashi-azul Рік тому

    Thanks for the video, even though it was made long ago it is still useful! :)

    • @BMoDev
      @BMoDev  Рік тому

      Thanks! Unity hasnt changed that much so most older videos still apply just fine!

  • @philippthuring686
    @philippthuring686 4 роки тому

    great value in this, plus your voice is really nice. gonna go check out your other videos now!

  • @happydoggo1235
    @happydoggo1235 Рік тому

    Really nice video, explained everything really well and very clear. I'm still a beginner for unity and my first real project is making the Atari game from the film Ready Player One and this video was an absolute godsend.

  • @RootsOf7
    @RootsOf7 4 місяці тому

    Great video, I was stuck for hours before.
    what interpreter are you using? I think mine is basic c#, and I even downloaded Unity for Visual Studio Code.

  • @zreakz
    @zreakz 4 роки тому +3

    I have been trying to learn basic top down movement like this for the past couple days. I have no C# experience, but this is the only video where the code actually worked and I learned what it meant. Will definitely watch more videos, thanks!

  • @wizwizard7382
    @wizwizard7382 Рік тому +1

    hey, having trouble for some reason on ln22 col5 (fixed update) and cant figure out why. any ideas?

  • @TiggyTVAnimations
    @TiggyTVAnimations 4 роки тому +1

    Thank you man! I am making a game and this really helped thank you so much!

  • @zombieskull5710
    @zombieskull5710 2 роки тому

    Thank you, it helped me, and was pretty simple.

  • @hezroncalucag8080
    @hezroncalucag8080 2 роки тому +1

    Thank you so much for this

    • @BMoDev
      @BMoDev  2 роки тому

      Sure thing!

  • @roberthermoso3436
    @roberthermoso3436 2 роки тому

    Nice video man, clear and concise explanation! Thanks a lot!

  • @Indie-A-tom
    @Indie-A-tom 3 роки тому

    Thanks for the turorial. The best one I found.

    • @BMoDev
      @BMoDev  3 роки тому

      Appreciate ya 🙏

  • @d.w.6584
    @d.w.6584 2 роки тому +1

    Simple
    Easy to follow along
    To the point with out any unnecessary assets or utility files to import.
    As someone who's just gotten into the gamedev, Thank you!
    I've been trying to learn basic concepts and techniques and I keep hitting walls because a lot of "beginner" tutorials will skip explaining/showing 1 or 2 really basic code that is essential to making a script work, or have assets preloaded and then never reference them in the tutorial.
    I've had to stop (after much frustration and time invested) a number of them and then look for how to do X, just to move forward. So a big thank you for keeping it short and sweet w/out any other unnecessary dependencies.

  • @sdenys3554
    @sdenys3554 3 роки тому

    Thanks for the tutorial, you are very help me, Thank you again))

  • @owenbrewster521
    @owenbrewster521 4 роки тому +1

    I love the quick pace of this tutorial! Super easy to follow. Do animation plz :))))

    • @BMoDev
      @BMoDev  4 роки тому +1

      Awesome! Animation is definitely one of the upcoming videos

    • @owenbrewster521
      @owenbrewster521 4 роки тому +1

      @@BMoDev Looking forward to it :D

  • @notbotpot7559
    @notbotpot7559 4 роки тому +2

    your tutorials are really short doable and amazing its better than brackeys
    brackeys just acts like everyone knows what everything is and does so its not really great for beginners like me so thank you b mo also i love how you reply interact and help people example-
    (you helped me on discord with the typo errors and the main menu so i appreciate you BMo

    • @BMoDev
      @BMoDev  4 роки тому

      Well I appreciate you watching, thanks! :)

  • @margarinebutter
    @margarinebutter Рік тому

    very helpful, thanks man

  • @Sock_Croc
    @Sock_Croc Рік тому

    love it. it really helped

  • @ozgungor2339
    @ozgungor2339 2 роки тому

    This helped me a lot thank you

  • @EliederSousa
    @EliederSousa 3 роки тому +2

    Thanks for the tutorial. The intellisense of my VS Code is not working properly; at 2:26, I type "Rigid" and nothing happens. How can I solve this?

    • @waluigi521
      @waluigi521 3 роки тому

      yes the same thing was happening to me

    • @mr.bluesman9879
      @mr.bluesman9879 3 роки тому

      You need to set your IDE settings in unity. You do it through preferences

    • @waluigi521
      @waluigi521 3 роки тому

      @@mr.bluesman9879 how do i do that?

    • @ZombinhoGames
      @ZombinhoGames 3 роки тому

      do u have c# extension

  • @des757
    @des757 4 роки тому +6

    Do you have your VS Code editor formatting method blocks in K&R style as you type or are those subtle jump cuts? I'm going crazy trying to get VSCode C# to stop doing Java style curly braces. Even the Unity snippet extension I'm using formats it that way, but the auto formatter fixes it when I hit the hotkey.
    I just want the lightweight-ness of Code with the feeling of Studio typing ahhh

  • @Montigorable
    @Montigorable 3 роки тому

    Super helpful, amazing, fabulous.

    • @BMoDev
      @BMoDev  3 роки тому

      Thank you 🙏

  • @mzerom9515
    @mzerom9515 4 роки тому

    Sos un capo, master, idolo, crack, genio, lo explicaste bastante bien

  • @martimneves4935
    @martimneves4935 4 роки тому +3

    You´re tutorial is awesome! Thanks a lot!!

    • @BMoDev
      @BMoDev  4 роки тому

      Appreciate it!

  • @toster5071
    @toster5071 4 роки тому +11

    Can someone give me finished script? I want to compare it

  • @Kualdir
    @Kualdir Рік тому

    Great video! Short and very clear

  • @ReallyBadBob
    @ReallyBadBob Рік тому

    Thanks, keep it up!

  • @hernandonj
    @hernandonj 3 роки тому

    Very good video. Thanks!

  • @toby_1405
    @toby_1405 3 роки тому

    Thank you so much very good tut!!

  • @cedricantunes4600
    @cedricantunes4600 Рік тому

    Thanks, very cool :D

  • @siryaakov2491
    @siryaakov2491 2 роки тому

    Great video thank you :D

  • @עמיתקורן-ר4צ
    @עמיתקורן-ר4צ 2 роки тому

    THX helped a lot

  • @goldengamer4115
    @goldengamer4115 2 роки тому +2

    I’m done with trying to learn game developing

  • @mrlaughgas
    @mrlaughgas 10 місяців тому

    Is there a reason you received the inputs and put them into the moveDirection vector only to separate the components again with:
    rb.velocity = new Vector2(moveDirection.x * movespeed, moveDirection.y * movespeed);
    Could you just do:
    rb.velocity = new Vector2(moveX * movespeed, moveY * movespeed);

  • @KokiriChild1
    @KokiriChild1 3 роки тому +2

    Loved this tutorial, it was very easy and quick. Thank you!

  • @litalu2
    @litalu2 2 роки тому

    You are a life saver

  • @gman8398
    @gman8398 Рік тому

    this is really good! is there a good way to add momentum to the movement?

  • @MrChris9340
    @MrChris9340 3 роки тому

    you really helped me thank you

  • @orirori8294
    @orirori8294 2 роки тому

    great stuff

    • @BMoDev
      @BMoDev  2 роки тому

      Appreciate it!

  • @kitindra
    @kitindra 2 роки тому +1

    I followed the tutorial step by step, but it doesnt work. did i do anything wrong?

    • @Basketeerr
      @Basketeerr 2 роки тому +1

      You probably are using a newer version of Unity

  • @benedglazer
    @benedglazer 3 роки тому +4

    what're your extensions? and how did you show the reference tag on your code?

    • @makashi1924
      @makashi1924 2 роки тому

      He is using vscode, im pretty sure its built in. if not try installing the c# exstension

  • @tvfilthyfrankson7408
    @tvfilthyfrankson7408 4 роки тому +2

    Unity..... We I've been working on Android Studio, but its a lot harder to make your own gravity, and collisions. And I followed this tutorial and successfuly made my , lets say game. Btw thanks a lot for simplicity and showing us that C# is very easy. Java is fuckin hard😁😁😀👌

    • @BMoDev
      @BMoDev  4 роки тому +1

      Haha no doubt! There's something respectable by making games from scratch, but hard to compete with when engines like Unity and Unreal have large teams of top talent to put in the grunt work for us. Glad you could get it working, nice job!

    • @tvfilthyfrankson7408
      @tvfilthyfrankson7408 4 роки тому +1

      I remembered, it took me 1 month to just make my own gravity and collisions for 2D game in Android Studio, but Unity doses all that for you, which makes it so easy to use. 1 month vs 10 minutes. It is easy for me cause C# and Java are pretty similar

  • @burhancityreal
    @burhancityreal 2 роки тому +1

    thanks this is really helpful, cant believe my drawing can actually move lmao

    • @BMoDev
      @BMoDev  2 роки тому

      Wooo lets goo, the next game of the year inbound!

  • @DylanDev
    @DylanDev 3 роки тому +2

    What Visual Studio Code theme are you using? I really like the one.

  • @hvenry
    @hvenry Рік тому

    thank you!

  • @potantirittisak8494
    @potantirittisak8494 3 роки тому

    THANK YOU!

  • @symone9746
    @symone9746 Рік тому

    Thanks for this! I can't see the full script at the end..can you share?