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
@theduckyt93573 жыл бұрын
Simple, straight to the point and only 7 minutes long. Love it.
@oprisdan Жыл бұрын
That's what she said.
@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!
@niblitsbopski65866 ай бұрын
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 Жыл бұрын
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
@AsanpiCh3 жыл бұрын
Short, simple, and it works! As an artist trying to learn code, thank you!
@blaze40743 жыл бұрын
FINNALY a video that will work! i've lost my hair trying to find a top down movement tutorial
@iamcheezeYT4 жыл бұрын
best tutorial! telling my friends to come here if they want to learn game dev
@DanOfMostTrades3 жыл бұрын
I appreciate your speed and conciseness! Other tutorials are finishing up their promotions and introduction at 7:20
@sofisticated19402 жыл бұрын
*cough* *cough* brakeys *cough* *cough"
@DarioMarken2 жыл бұрын
@@sofisticated1940 Don't disrespect the legend himself.
@IFCreativeAlt2 жыл бұрын
kids hating on brackeys
@patches1636 ай бұрын
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
@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!
@koolkiller352 жыл бұрын
I'm sorry I'm new to coding and don't understand. Can you explain that in a bit more detail?
@wickjon18442 жыл бұрын
@@koolkiller35 You can refer here in 1:28 and 2:09 kzbin.info/www/bejne/rqGWaHuwZtlkh5o 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.
@leaf46452 жыл бұрын
@@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
@PolyxTheWise11 ай бұрын
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! :)
@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_cats2 жыл бұрын
I can't type I need help
@sssquirrelyalt Жыл бұрын
@@Ivy_olive_catswhy are you coding then
@GarySSBM Жыл бұрын
Omg, glad you’re ok!
@werejustgaming11 ай бұрын
Yeah my problem but I can't make it work
@martindotts82624 жыл бұрын
I love how straight to the point this is. :)
@jacobhuneault342011 ай бұрын
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
@toiletdroid59143 жыл бұрын
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.
@plutoniumbellamy19122 жыл бұрын
This is perfect for underwater movement. Thank you for this tutorial!
@CASMANWHAT3 жыл бұрын
LOVE how you explains stuff. so clear!
@laughingpanda952 жыл бұрын
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
@stipularbench15344 жыл бұрын
OMFG the best tutorial easy to follow and I learned soooo much KEEP GOING
@BMoDev4 жыл бұрын
No doubt, glad it helped!
@unexpectedcringe45752 жыл бұрын
getting watched latered for the rest of my days thank you
@NamNguyen-uu8yq2 жыл бұрын
TNice tutorials is THE most helpful tutorial on KZbin imo. I am starting production in Hardstyle, and I find soft soft really useful
@joemullen77893 жыл бұрын
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!!!
@BMoDev3 жыл бұрын
Love to hear it, keep going! Feel free to share your progress in the discord would love to see what you make!
@Zephyr3143 жыл бұрын
same here!
@wizwizard7382 Жыл бұрын
hey, having trouble for some reason on ln22 col5 (fixed update) and cant figure out why. any ideas?
@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)
@keventy61144 жыл бұрын
Thanks! I did this and linked it with the Animator StateMachine- with the Horizontal and Vertical inputs - to make very smooth-looking movements.
@BMoDev4 жыл бұрын
Ayy nice work! You're ahead of the game, that was going to be a followup video :)
@keventy61144 жыл бұрын
@@BMoDev That's great to hear! Looking forward to watching the next.
@김우시원7 ай бұрын
Everything that I needed was here all the time...thanks for sharing your skills.
@toster50714 жыл бұрын
Can someone give me finished script? I want to compare it
@T.worm.studios122 ай бұрын
Sure
@fatherflyntdraws2 жыл бұрын
I followed the tutorial step by step, but it doesnt work. did i do anything wrong?
@bask65882 жыл бұрын
You probably are using a newer version of Unity
@EliederSousa3 жыл бұрын
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?
@waluigi5213 жыл бұрын
yes the same thing was happening to me
@mr.bluesman98793 жыл бұрын
You need to set your IDE settings in unity. You do it through preferences
@waluigi5213 жыл бұрын
@@mr.bluesman9879 how do i do that?
@ZombinhoGames3 жыл бұрын
do u have c# extension
@cardario53232 жыл бұрын
It scares me how good theses tutorials are!
@BMoDev2 жыл бұрын
Wow appreciate it
@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
@Sam4Progress9 ай бұрын
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!
@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!
@BMoDev2 жыл бұрын
Appreciate it! Would love to keep tabs on your game
@jazzyjaiden3 жыл бұрын
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.
@mrlaughgas Жыл бұрын
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);
@florians.6402 Жыл бұрын
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
@amandacollins73924 жыл бұрын
Super easy to follow tutorial!! We STAN Bmo 😎
@BMoDev4 жыл бұрын
your comments actually make me laugh everytime
@Patrick-il3uy4 жыл бұрын
Not really. I'm doing Unity the first time and he is just jumping around. It should be slower for a tutorial.
@xteclisx274 жыл бұрын
Short and concise! Thank you!
@toastedtoastyboi4 жыл бұрын
im learning game design for a class project and this was helpful. thank you!
@benedglazer4 жыл бұрын
what're your extensions? and how did you show the reference tag on your code?
@makashi19242 жыл бұрын
He is using vscode, im pretty sure its built in. if not try installing the c# exstension
@RootsOf76 ай бұрын
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.
@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
@BMoDev4 жыл бұрын
Thanks for sharing!
@zippich74954 жыл бұрын
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
@ICapCorn3 жыл бұрын
Кстати я тоже русский
@andrewsodyssey57532 жыл бұрын
When I drag the script to the component list it dosen't give me the option to change any of the scripts attributes
@SarunasVitkus-x8b Жыл бұрын
maybe i can somewhere copy all the codes bcause, i have some problems like colors not the same a lot of errors in the console and more... btw im new in the coding, this is my first time and i dont understand sh!t
@fania6762 жыл бұрын
It's the best unity tutorial video I ever seen
@everything-we9rc2 жыл бұрын
surprisingly hard to find videos about top down movement and this tutorial was very helpful
@BMoDev2 жыл бұрын
I've always thought that too, np
@sakshampathak48702 жыл бұрын
There is an error saying " ArgumentExeption: Input Axis horizontal is not setup. To change the input settings use: Edit -> settings -> input "
@BMoDev2 жыл бұрын
Make sure its capitalized correctly
@thecanaeggplant29374 жыл бұрын
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.
@LearnWorld-x1b9 ай бұрын
In this case using Time.deltatime is necessary or not?
@NoThumbsSins2 жыл бұрын
I'm having trouble I did exactly this and it doesn't work I've gone over it multiple times and it doesn't say there is any issues but then says all issues must be fixed before compiling?
@goldengamer41152 жыл бұрын
I’m done with trying to learn game developing
@dhruvsrivastava98464 жыл бұрын
Omg this is so much simpler and a better explanation than 3 other videos
@kuyabonbondevlog10444 жыл бұрын
Thank you, your tutorial is the only one working on all of the videos I searched
@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
@StoopidMonkie Жыл бұрын
um this wont work for me, any time i create a new script unity says that cant add script component because the script class cant be found
@santaman93192 жыл бұрын
Thank guy, have a good day
@viksingg Жыл бұрын
Ty bro, short tutorial, not some complicated code, this is great Im leaving like and subscribe!
@DylanDev3 жыл бұрын
What Visual Studio Code theme are you using? I really like the one.
@maggie30603 жыл бұрын
I think its monokai
@nickl6373 Жыл бұрын
The type or namespace name 'RidgidBody2d' could not be found (are you missing a using directive or an assembly reference?)
@jadonx.4760 Жыл бұрын
unity is pretty picky on these type of things, instead of 'RigidBody2d' it is 'Rigidbody2D'
@kyleparkin24282 жыл бұрын
What are you using so vs will predict what you are typing
@siriusk1438 Жыл бұрын
my gameobject continues moving for arround 1 sec after i stop pressing the axis key. What can i do to when i stop pressing the key the gameobject stops moving at the same moment ?
@philippthuring6864 жыл бұрын
great value in this, plus your voice is really nice. gonna go check out your other videos now!
@thatrealguylogan3 жыл бұрын
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!!!
@jjadter81393 жыл бұрын
Thank you so much for explaining why you did the things you did! It really helped me learn!
@sahildesai42213 жыл бұрын
Loved the way you explain things! subbed ;)
@BMoDev3 жыл бұрын
Thanks!
@DZGG124329 күн бұрын
when i do it pressing w and s does nothing and d goes up and right and a goes down and left
@inkadastinka3 жыл бұрын
when i type public float moveSpeed; and public Rigidbody2D rb; it does not show anything under the tab and I have not found anything on the forum that can help me.
@williamdahlstedt9532 Жыл бұрын
can someone help me, my character keeps drifting up and left, if I press right it moves right and up and if I press Down it moves left and down, I've tried multiple tutorials and the same problem
@minayouness2 жыл бұрын
Thank you so much for this tutorial
@BMoDev2 жыл бұрын
You bet hope it helped!
@johndenis8526 Жыл бұрын
THANK YOU VERY MUCH GOD BLESS YOU. THE ONLY TUTORIAL I COULD FOLLOW AND IT WORK.
@CoryPelizzari Жыл бұрын
So FixedUpdate is basically deltaTime without having to call deltaTime multiple times?
@justleo29033 жыл бұрын
hey BMo! It worked perfectly one time, but now it doesn't anymore. There's no error and the sprite is moving but it's moving down without me pressing any buttons. If I press a button it goes in this direction. I don't understand. I have the EXACT same code...
@glitchcentral27533 жыл бұрын
is the gravity in ur rb set to 0
@justleo29033 жыл бұрын
@@glitchcentral2753 yes. In other projects it didn't work either
@leonaxt6112 жыл бұрын
@@justleo2903 Did you ever figure out the answer to this problem? I'm dealing with the same thing myself. And none of the internet's solutions seem to work.
@itsjstleo2 жыл бұрын
@@leonaxt611 I don't know how... But after letting this project sleep for an eternity, it suddenly worked. Idk what i did but i just hit run without expecting it to work, but it did
@Nolan_9753 жыл бұрын
hey! ty for your tutorial but t have an error in the console: Assets\PlayerMouvement.cs(35,74): error CS1061: 'float' does not contain a definition for 'y' and no accessible extension method 'y' accepting a first argument of type 'float' could be found (are you missing a using directive or an assembly reference?) can you help me?
@GeckoTech_Engineer Жыл бұрын
Can you do this without the ghost effect?
@symone9746 Жыл бұрын
Thanks for this! I can't see the full script at the end..can you share?
@notinyourwalls15102 жыл бұрын
i have been trying to add movement to my topdown rpg for a wile now but every time I try to enter play mode It says all compiler errors have to be fixed before I enter playmode can someone tell me how to fix it I would greatly appreciate it
@fish_07922 жыл бұрын
why in 5:11 you multiply "moveSpeed" 2 times?
@ImortalSkape2 жыл бұрын
For both x and y. Have to make sure up and down is the same as left and right
@iconic23102 жыл бұрын
thanks for showing finally able to get my little rpg going!
@davinsyathirarrumi3 жыл бұрын
Why is my player phase through object even though I allready add a box collider
@genshinnpc91943 жыл бұрын
Does the object have a collider?
@scyther-x49033 жыл бұрын
Why did you delete the start function?
@genshinnpc91943 жыл бұрын
you dont need it, so why would you keep it? ^ ^
@OblviousSnailYT4 жыл бұрын
Hi! Can i ask what theme you're using for that syntax highlighting?
@roberthermoso34362 жыл бұрын
Nice video man, clear and concise explanation! Thanks a lot!
@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.
@KuhHirte4 жыл бұрын
which writing system do you use my one is bad and i clicked tat it always open with this and cant change it:( the tutorial is good but i am bad
@federicocostanzi1234 Жыл бұрын
is it possible to clamp the movement to make it smoother? (if so, how?)
@simi82202 жыл бұрын
Thank you so much for the quick and easy explanations.
@BMoDev2 жыл бұрын
Thanks!
@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 😥
@shalevforfor55509 ай бұрын
5:57 because I used python in the past I k ow how to fix that using math and now I start unity and I still stuck on the way that everything should be code like in python but in unity you got all set up my code before that video was not good and it even didn't work good so thx you
@TomationuJaDark1x Жыл бұрын
It gave me an error saying "The name moveX/moveY does not exist in the current context". Is there any way i can fix this?
@snowshinobi11424 жыл бұрын
yeah so none of the void commands work ill just end myself now
@mistadude3 жыл бұрын
did you attach it to the thing you want to move?
@Mystical-TEDDY_3 жыл бұрын
@@mistadude did u get it to because not a SINGLE tutorial has worked for me so far
@mansmossfeldt37084 жыл бұрын
I got this error: Assets/PlayerMovement.cs(32,12): error CS1061: 'Rigidbody2D' does not contain a definition for 'Velocity' and no accessible extension method 'Velocity' accepting a first argument of type 'Rigidbody2D' could be found (are you missing a using directive or an assembly reference?) Does anyone know how to fix it?:)
@16161616604 жыл бұрын
the "v" in velocity might be lower case
@bottleogames4 жыл бұрын
ive watched this a few times now its saying "Assets\Scripts\PlayerMovement2d.cs(26,23): error CS0103: The name 'GetAxis' does not exist in the current context" can you help?
@TheDoomLordd3 жыл бұрын
These videos help so much, my mind just gets stuck somedays and its hard to make even a simple start
@ZohMyGods3 жыл бұрын
is there are reason to create a new Vector2 every time? isnt it better to create a velocity and initialize it on the Start function and just update rb.velocity to velocity ?
@truekingdom2443 Жыл бұрын
What command pallet are you using?
@Johannes_DC3 жыл бұрын
.normalized works with the GetAxisRaw command. But when used with GetAxis, it does not work. You will get strange results. How do you fix this...
@anthonyvaught70394 жыл бұрын
I am having one issue. The processinputs command isnt found for me. It doesn't recognize it when it is typed.
@mindgrind5968 Жыл бұрын
What extensions are you using that auto generates summary on your functions? Also my intellisense is working but when I type void fixedupdate that does not auto populate like yours. Is there something im missing or need to enable? Thanks great tutorial!