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
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
Simple, straight to the point and only 7 minutes long. Love it.
@user-qq2jh4ep6u
7 ай бұрын
That's what she said.
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.
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
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!
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.
Short, simple, and it works! As an artist trying to learn code, thank you!
I love how straight to the point this is. :)
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! :)
best tutorial! telling my friends to come here if they want to learn game dev
FINNALY a video that will work! i've lost my hair trying to find a top down movement tutorial
This is perfect for underwater movement. Thank you for this tutorial!
LOVE how you explains stuff. so clear!
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.
Awesome tutorial love it, it's straight to the point "this is how you move" lol, thanks for this tutorial 👌
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
2 жыл бұрын
Appreciate it! Would love to keep tabs on your game
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
im learning game design for a class project and this was helpful. thank you!
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!!!
Thank you, your tutorial is the only one working on all of the videos I searched
I appreciate your speed and conciseness! Other tutorials are finishing up their promotions and introduction at 7:20
@sofisticated1940
2 жыл бұрын
*cough* *cough* brakeys *cough* *cough"
@DarioMarken
2 жыл бұрын
@@sofisticated1940 Don't disrespect the legend himself.
@IFCreativeAlt
Жыл бұрын
kids hating on brackeys
TNice tutorials is THE most helpful tutorial on KZread imo. I am starting production in Hardstyle, and I find soft soft really useful
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
2 жыл бұрын
I'm sorry I'm new to coding and don't understand. Can you explain that in a bit more detail?
@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
2 жыл бұрын
@@koolkiller35in the rigid body where u adjust the gravity, there is an potion called "bodytype" change that from dynamic to kinematic
@TheWeatherMan2
Жыл бұрын
Good shout honestly
Short and concise! Thank you!
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
great value in this, plus your voice is really nice. gonna go check out your other videos now!
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
2 жыл бұрын
Love to hear it, keep going! Feel free to share your progress in the discord would love to see what you make!
@Zephyr314
2 жыл бұрын
same here!
Thank you so much for explaining why you did the things you did! It really helped me learn!
Omg this is so much simpler and a better explanation than 3 other videos
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.
Thanks! I did this and linked it with the Animator StateMachine- with the Horizontal and Vertical inputs - to make very smooth-looking movements.
@BMoDev
4 жыл бұрын
Ayy nice work! You're ahead of the game, that was going to be a followup video :)
@keventy6114
4 жыл бұрын
@@BMoDev That's great to hear! Looking forward to watching the next.
OMFG the best tutorial easy to follow and I learned soooo much KEEP GOING
@BMoDev
3 жыл бұрын
No doubt, glad it helped!
Nice video man, clear and concise explanation! Thanks a lot!
Thank you man! I am making a game and this really helped thank you so much!
Everything that I needed was here all the time...thanks for sharing your skills.
Great video! Short and very clear
Ty bro, short tutorial, not some complicated code, this is great Im leaving like and subscribe!
Loved the way you explain things! subbed ;)
@BMoDev
2 жыл бұрын
Thanks!
Thank you, it helped me, and was pretty simple.
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.
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
4 жыл бұрын
Thanks for sharing!
Thank you so much very good tut!!
surprisingly hard to find videos about top down movement and this tutorial was very helpful
@BMoDev
2 жыл бұрын
I've always thought that too, np
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
4 жыл бұрын
Nice job!
These videos help so much, my mind just gets stuck somedays and its hard to make even a simple start
Thanks for the tutorial, you are very help me, Thank you again))
Very good video. Thanks!
It's the best unity tutorial video I ever seen
love it. it really helped
Thank you so much for the quick and easy explanations.
@BMoDev
2 жыл бұрын
Thanks!
This helped me a lot thank you
getting watched latered for the rest of my days thank you
It scares me how good theses tutorials are!
@BMoDev
2 жыл бұрын
Wow appreciate it
very helpful, thanks man
Super helpful, amazing, fabulous.
@BMoDev
3 жыл бұрын
Thank you 🙏
Sos un capo, master, idolo, crack, genio, lo explicaste bastante bien
Thanks for the turorial. The best one I found.
@BMoDev
2 жыл бұрын
Appreciate ya 🙏
this is so helpful thank you do much!
@BMoDev
3 жыл бұрын
Awesome!
Thanks, keep it up!
Great video thank you :D
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
thank youu for the help!
THANK YOU VERY MUCH GOD BLESS YOU. THE ONLY TUTORIAL I COULD FOLLOW AND IT WORK.
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
4 жыл бұрын
Awesome, happy to hear that!
Thank you so much for this tutorial
@BMoDev
2 жыл бұрын
You bet hope it helped!
I love the quick pace of this tutorial! Super easy to follow. Do animation plz :))))
@BMoDev
4 жыл бұрын
Awesome! Animation is definitely one of the upcoming videos
@owenbrewster521
4 жыл бұрын
@@BMoDev Looking forward to it :D
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!
Thanks for the video, even though it was made long ago it is still useful! :)
@BMoDev
10 ай бұрын
Thanks! Unity hasnt changed that much so most older videos still apply just fine!
Thanks, very cool :D
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.
thanks for showing finally able to get my little rpg going!
Can someone give me finished script? I want to compare it
this is the most helpful vid in movement thanks
@BMoDev
3 жыл бұрын
Glad it helped!
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)
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
Thank you so much for this
@BMoDev
2 жыл бұрын
Sure thing!
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
3 жыл бұрын
Кстати я тоже русский
Loved this tutorial, it was very easy and quick. Thank you!
THX helped a lot
Thank guy, have a good day
THANK YOU!
Super easy to follow tutorial!! We STAN Bmo 😎
@BMoDev
4 жыл бұрын
your comments actually make me laugh everytime
@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.
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!
you really helped me thank you
@BMoDev
3 жыл бұрын
You bet!
thank you!
You are a life saver
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
2 жыл бұрын
I can't type I need help
@Everypersonevertoexist
Жыл бұрын
@@Ivy_olive_catswhy are you coding then
@GarySSBM
8 ай бұрын
Omg, glad you’re ok!
@werejustgaming
6 ай бұрын
Yeah my problem but I can't make it work
Thanks bro!!!!!!!!
great stuff
@BMoDev
2 жыл бұрын
Appreciate it!
Thanks!
thank you so much
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
Thank u bro
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 😥
You´re tutorial is awesome! Thanks a lot!!
@BMoDev
4 жыл бұрын
Appreciate it!
Hi! Can i ask what theme you're using for that syntax highlighting?
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?
Thank you
thanks this is really helpful, cant believe my drawing can actually move lmao
@BMoDev
2 жыл бұрын
Wooo lets goo, the next game of the year inbound!
this is really good! is there a good way to add momentum to the movement?