2D Top Down Movement UNITY Tutorial

In this Unity Tutorial we'll cover how to move a 2D character or player around the scene from a top down perspective. This tutorial won't cover animations, but it does cover how to move correctly using Unity's built-in physics system and input system.
This tutorial is a great starting point for beginners to get their feet wet with game development. It also can act as a refresh for Intermediate+ developers.
Hope it helps!
✨Want to support the channel?
Buy me a coffee ☕: ko-fi.com/bmoli
➤Join the new DISCORD SERVER: / discord
➤Want to make video games? Start with my tutorial Playlist: • Epic Unity Tutorials
➤5 Minute Tutorial Series: • 5 Minute Games
➤Don't forget to SUBSCRIBE for all the upcoming content.
Thanks for watching!!
#bmo #unity #tutorial

Пікірлер: 593

  • @Lipapalidev
    @Lipapalidev5 ай бұрын

    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

  • @theduckyt9357
    @theduckyt93573 жыл бұрын

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

  • @user-qq2jh4ep6u

    @user-qq2jh4ep6u

    7 ай бұрын

    That's what she said.

  • @niblitsbopski6586
    @niblitsbopski658629 күн бұрын

    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.

  • @GeckoTech_Engineer
    @GeckoTech_Engineer Жыл бұрын

    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

  • @koshiinahole1003
    @koshiinahole10033 жыл бұрын

    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!

  • @toiletdroid5914
    @toiletdroid59142 жыл бұрын

    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.

  • @AsanpiCh
    @AsanpiCh3 жыл бұрын

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

  • @martindotts8262
    @martindotts82624 жыл бұрын

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

  • @PolyxTheWise
    @PolyxTheWise6 ай бұрын

    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! :)

  • @iamcheezeYT
    @iamcheezeYT3 жыл бұрын

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

  • @blaze4074
    @blaze40743 жыл бұрын

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

  • @plutoniumbellamy1912
    @plutoniumbellamy19122 жыл бұрын

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

  • @CASMANWHAT
    @CASMANWHAT3 жыл бұрын

    LOVE how you explains stuff. so clear!

  • @thecanaeggplant2937
    @thecanaeggplant29373 жыл бұрын

    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.

  • @fishgethirsty6377
    @fishgethirsty63773 жыл бұрын

    Awesome tutorial love it, it's straight to the point "this is how you move" lol, thanks for this tutorial 👌

  • @nikhilshelke9398
    @nikhilshelke93982 жыл бұрын

    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 жыл бұрын

    Appreciate it! Would love to keep tabs on your game

  • @patches163
    @patches163Ай бұрын

    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

  • @toastedtoastyboi
    @toastedtoastyboi3 жыл бұрын

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

  • @thatrealguylogan
    @thatrealguylogan2 жыл бұрын

    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!!!

  • @kuyabonbondevlog1044
    @kuyabonbondevlog10443 жыл бұрын

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

  • @DanOfMostTrades
    @DanOfMostTrades3 жыл бұрын

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

  • @sofisticated1940

    @sofisticated1940

    2 жыл бұрын

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

  • @DarioMarken

    @DarioMarken

    2 жыл бұрын

    @@sofisticated1940 Don't disrespect the legend himself.

  • @IFCreativeAlt

    @IFCreativeAlt

    Жыл бұрын

    kids hating on brackeys

  • @NamNguyen-uu8yq
    @NamNguyen-uu8yq Жыл бұрын

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

  • @wickjon1844
    @wickjon18442 жыл бұрын

    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 жыл бұрын

    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 kzread.info/dash/bejne/qqRnmaqzYdeXgZs.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 жыл бұрын

    ​@@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

  • @xteclisx27
    @xteclisx274 жыл бұрын

    Short and concise! Thank you!

  • @jacobhuneault3420
    @jacobhuneault34206 ай бұрын

    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

  • @philippthuring686
    @philippthuring6863 жыл бұрын

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

  • @joemullen7789
    @joemullen77892 жыл бұрын

    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 жыл бұрын

    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!

  • @jjadter8139
    @jjadter81393 жыл бұрын

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

  • @dhruvsrivastava9846
    @dhruvsrivastava98464 жыл бұрын

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

  • @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.

  • @keventy6114
    @keventy61144 жыл бұрын

    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 жыл бұрын

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

  • @keventy6114

    @keventy6114

    4 жыл бұрын

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

  • @stipularbench1534
    @stipularbench15343 жыл бұрын

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

  • @BMoDev

    @BMoDev

    3 жыл бұрын

    No doubt, glad it helped!

  • @roberthermoso3436
    @roberthermoso3436 Жыл бұрын

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

  • @TiggyTVAnimations
    @TiggyTVAnimations3 жыл бұрын

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

  • @user-qq1xq2zp9v
    @user-qq1xq2zp9vАй бұрын

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

  • @Kualdir
    @Kualdir Жыл бұрын

    Great video! Short and very clear

  • @viksingg6661
    @viksingg6661 Жыл бұрын

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

  • @sahildesai4221
    @sahildesai42212 жыл бұрын

    Loved the way you explain things! subbed ;)

  • @BMoDev

    @BMoDev

    2 жыл бұрын

    Thanks!

  • @zombieskull5710
    @zombieskull57102 жыл бұрын

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

  • @jazzyjaiden
    @jazzyjaiden2 жыл бұрын

    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.

  • @mattheww1072
    @mattheww10724 жыл бұрын

    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!

  • @toby_1405
    @toby_14053 жыл бұрын

    Thank you so much very good tut!!

  • @everything-we9rc
    @everything-we9rc2 жыл бұрын

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

  • @BMoDev

    @BMoDev

    2 жыл бұрын

    I've always thought that too, np

  • @zreakz
    @zreakz4 жыл бұрын

    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!

  • @BMoDev

    @BMoDev

    4 жыл бұрын

    Nice job!

  • @TheDoomLordd
    @TheDoomLordd3 жыл бұрын

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

  • @sdenys3554
    @sdenys35543 жыл бұрын

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

  • @hernandonj
    @hernandonj3 жыл бұрын

    Very good video. Thanks!

  • @fania676
    @fania6762 жыл бұрын

    It's the best unity tutorial video I ever seen

  • @Sock_Croc
    @Sock_Croc Жыл бұрын

    love it. it really helped

  • @simi8220
    @simi82202 жыл бұрын

    Thank you so much for the quick and easy explanations.

  • @BMoDev

    @BMoDev

    2 жыл бұрын

    Thanks!

  • @ozgungor2339
    @ozgungor23392 жыл бұрын

    This helped me a lot thank you

  • @unexpectedcringe4575
    @unexpectedcringe45752 жыл бұрын

    getting watched latered for the rest of my days thank you

  • @cardario5323
    @cardario53232 жыл бұрын

    It scares me how good theses tutorials are!

  • @BMoDev

    @BMoDev

    2 жыл бұрын

    Wow appreciate it

  • @margarinebutter
    @margarinebutter Жыл бұрын

    very helpful, thanks man

  • @Montigorable
    @Montigorable3 жыл бұрын

    Super helpful, amazing, fabulous.

  • @BMoDev

    @BMoDev

    3 жыл бұрын

    Thank you 🙏

  • @mzerom9515
    @mzerom95153 жыл бұрын

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

  • @Indie-A-tom
    @Indie-A-tom2 жыл бұрын

    Thanks for the turorial. The best one I found.

  • @BMoDev

    @BMoDev

    2 жыл бұрын

    Appreciate ya 🙏

  • @misspeachyxo
    @misspeachyxo3 жыл бұрын

    this is so helpful thank you do much!

  • @BMoDev

    @BMoDev

    3 жыл бұрын

    Awesome!

  • @m8te8
    @m8te8 Жыл бұрын

    Thanks, keep it up!

  • @siryaakov2491
    @siryaakov24912 жыл бұрын

    Great video thank you :D

  • @des757
    @des7574 жыл бұрын

    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

  • @Happy_cyn
    @Happy_cyn3 жыл бұрын

    thank youu for the help!

  • @johndenis8526
    @johndenis8526 Жыл бұрын

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

  • @alfredfind1219
    @alfredfind12194 жыл бұрын

    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!

  • @minayouness
    @minayouness2 жыл бұрын

    Thank you so much for this tutorial

  • @BMoDev

    @BMoDev

    2 жыл бұрын

    You bet hope it helped!

  • @owenbrewster521
    @owenbrewster5214 жыл бұрын

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

  • @BMoDev

    @BMoDev

    4 жыл бұрын

    Awesome! Animation is definitely one of the upcoming videos

  • @owenbrewster521

    @owenbrewster521

    4 жыл бұрын

    @@BMoDev Looking forward to it :D

  • @kjudu4159
    @kjudu41593 жыл бұрын

    I think it's still one of the best tutorials about diagonal movement and you helped me out a lot thanks about that. WELL DONE!

  • @togashi-azul
    @togashi-azul10 ай бұрын

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

  • @BMoDev

    @BMoDev

    10 ай бұрын

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

  • @cedricantunes4600
    @cedricantunes4600 Жыл бұрын

    Thanks, very cool :D

  • @d.w.6584
    @d.w.65842 жыл бұрын

    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.

  • @iconic2310
    @iconic2310 Жыл бұрын

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

  • @toster5071
    @toster50713 жыл бұрын

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

  • @gettinjcob4206
    @gettinjcob42063 жыл бұрын

    this is the most helpful vid in movement thanks

  • @BMoDev

    @BMoDev

    3 жыл бұрын

    Glad it helped!

  • @bhartisharma139
    @bhartisharma1392 жыл бұрын

    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)

  • @laughingpanda95
    @laughingpanda95 Жыл бұрын

    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

  • @hezroncalucag8080
    @hezroncalucag80802 жыл бұрын

    Thank you so much for this

  • @BMoDev

    @BMoDev

    2 жыл бұрын

    Sure thing!

  • @zippich7495
    @zippich74953 жыл бұрын

    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 жыл бұрын

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

  • @KokiriChild1
    @KokiriChild13 жыл бұрын

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

  • @user-hp2ct5yu9e
    @user-hp2ct5yu9e2 жыл бұрын

    THX helped a lot

  • @santaman9319
    @santaman9319 Жыл бұрын

    Thank guy, have a good day

  • @potantirittisak8494
    @potantirittisak84942 жыл бұрын

    THANK YOU!

  • @amandacollins7392
    @amandacollins73924 жыл бұрын

    Super easy to follow tutorial!! We STAN Bmo 😎

  • @BMoDev

    @BMoDev

    4 жыл бұрын

    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.

  • @Sam4Progress
    @Sam4Progress4 ай бұрын

    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!

  • @MrChris9340
    @MrChris93403 жыл бұрын

    you really helped me thank you

  • @BMoDev

    @BMoDev

    3 жыл бұрын

    You bet!

  • @hvenry
    @hvenry Жыл бұрын

    thank you!

  • @litalu2
    @litalu22 жыл бұрын

    You are a life saver

  • @Edward-Not-Elric
    @Edward-Not-Elric3 жыл бұрын

    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

  • @Everypersonevertoexist

    @Everypersonevertoexist

    Жыл бұрын

    ​@@Ivy_olive_catswhy are you coding then

  • @GarySSBM

    @GarySSBM

    8 ай бұрын

    Omg, glad you’re ok!

  • @werejustgaming

    @werejustgaming

    6 ай бұрын

    Yeah my problem but I can't make it work

  • @haishigd943
    @haishigd9433 жыл бұрын

    Thanks bro!!!!!!!!

  • @orirori8294
    @orirori82942 жыл бұрын

    great stuff

  • @BMoDev

    @BMoDev

    2 жыл бұрын

    Appreciate it!

  • @zilvi_69
    @zilvi_693 жыл бұрын

    Thanks!

  • @NeoniumOxide
    @NeoniumOxide3 жыл бұрын

    thank you so much

  • @jaygo3721
    @jaygo37214 жыл бұрын

    whenever i open VSCode on unity and try puttting something like GameObject nothing comes up, and its not the intelli thing cos other tthings come up like try and stuff does anyone know why

  • @mohamedmomax4652
    @mohamedmomax46522 жыл бұрын

    Thank u bro

  • @ADITYA3GAME
    @ADITYA3GAME3 жыл бұрын

    Hey! Can you make a video on how to code a diagonal jump? I tried this but the vector in x direction doesn't seem to work 😥

  • @martimneves4935
    @martimneves49354 жыл бұрын

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

  • @BMoDev

    @BMoDev

    4 жыл бұрын

    Appreciate it!

  • @OblviousSnailYT
    @OblviousSnailYT3 жыл бұрын

    Hi! Can i ask what theme you're using for that syntax highlighting?

  • @geekhatter5722
    @geekhatter57223 жыл бұрын

    When I type in 'void FixedUpdate' it doesn't create all this other stuff, it also doesn't show me all the other options for commands you have, the ones with that orange image you also have next to 'PlayerMovement' up top, which I also don't have. My file path ends at '> PlayerMovement.cs', am I missing some file?

  • @sueray5771
    @sueray57712 жыл бұрын

    Thank you

  • @realbrhancitygeming22
    @realbrhancitygeming222 жыл бұрын

    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!

  • @gman8398
    @gman8398 Жыл бұрын

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