Hey everyone! - Const variables should be typed LIKE_THIS...if you're following standard naming conventions Completely slipped my mind, just wanted to let you know!
This is by far the best top-down move system I've seen. Have had so many issues making my own for various jams with bad collision, weird physics behavior (never thought to just 0 out angular drag...), and super poor responsiveness. This has solved all of that. Thanks man!
This came at exactly the right time. I needed to refamiliarize myself with blend trees for 2D movement. I was about to go and search for a tutorial but I found that I had your video in my watch later. Thanks for the excellent tutorial as always, Brandon!
These videos are great. Found them a last week and instantly subscribed these are great. EDIT: Went back and rewatched your video and saw where you showed how to turn on the sample size for animations. Once again, awesome videos!
Hey I'm new to coding thank you for making the video I've been learning Unity visual scripting and now visual studio coding its fun but super intimidating to learn. Fantastic video thanks for making it!
Thanks for the tutorial! I already followed a similar one but they didnt fix the idle animation defaulting to the front one so this was really helpful. But one thing crom that tutorial that would help in not having so many conditions in the transition is to have a "speed" animation variable that becomes equal to the movement vector's magnitude. So you can just make the animation transition be if the speed is greater than 0.01.
so I followed the movement code from 1:30 to 4:32 beat for beat yet when i try to run it or even continue on with the tutorial it keeps saying i need to fix "my compiler errors" yet wont tell me whats wrong. I don't know much about coding if any at all.
It works perfect and thanks for the controller, although if i continuously " tap tap " the btn instead of holding btn, the character just get drag and animation doesnt change. How can i fix it?
you can use a variable in the animator called Speed to avoid using a lot of "or" in the animator transition, after that you need to set this on the update method: animator.SetFloat("Speed", movement.sqrMagnitude);
Hello I want to ask about _moveAction = _playerInput.actions["Move"]; I tried to write that line, but somehow it shows error that PlayerInput doesn't has definition for 'actions'. I have same Input Manager version which is 1.7.0 and creating the same input action like what you do in the video. Can you help?
Amazing video, ty so much! ❤ Quick question, to add attacks and more complex states, building a State Machine is better? Still learning, and I'm seeing a lot of different approaches.
Please provide the code, so i know that it's not the mistake of my typing, because i spend like a hour, squinting my eyes and looking for any errors, I know that you didn't provide because you wanted to teach us, but please provide the code.
add the following line above the _movement.Set(); on line 26. Just a heads up, it will prioritize X axis movement over Y axis. Maybe someone has a smarter way to do that, but this will get rid of diagonal. if (InputManager.Movement.x != 0) InputManager.Movement.y = 0;
Looking good. So I can also make my project in Unity it seems but it would probably take longer, not sure. I’m using RPG MAKER MV with lots of JavaScript plugins and commands. I started looking at Unity, Python and GM but I’ve found the engine I want to make my game in.
Hey everyone! - Const variables should be typed LIKE_THIS...if you're following standard naming conventions
Completely slipped my mind, just wanted to let you know!
This is by far the best top-down move system I've seen. Have had so many issues making my own for various jams with bad collision, weird physics behavior (never thought to just 0 out angular drag...), and super poor responsiveness. This has solved all of that. Thanks man!
This came at exactly the right time. I needed to refamiliarize myself with blend trees for 2D movement. I was about to go and search for a tutorial but I found that I had your video in my watch later. Thanks for the excellent tutorial as always, Brandon!
Cheers dude! Never heard of the Input System! 😄
Thanks so much. So quick to the point and never got lost at any point. Looks terrific, please continue making content you are truely talented!
These videos are great. Found them a last week and instantly subscribed these are great. EDIT: Went back and rewatched your video and saw where you showed how to turn on the sample size for animations. Once again, awesome videos!
For me it is the best tutorial about top down movement) Thank you for your videos that helps me to keep learning gamedev!
How does this not have more views?????? Best tutorial out there for sure!
thank you so much. You have my utmost respect as this saved me from disappointing my class
Exactly what I needed, thanks.
Masterful as always. Thank you!!
I wanted this!! I'm so happy to finally find this way to move. Thank you!😆
Hey I'm new to coding thank you for making the video I've been learning Unity visual scripting and now visual studio coding its fun but super intimidating to learn. Fantastic video thanks for making it!
Your method is so clean
Thanks for the tutorial! I already followed a similar one but they didnt fix the idle animation defaulting to the front one so this was really helpful. But one thing crom that tutorial that would help in not having so many conditions in the transition is to have a "speed" animation variable that becomes equal to the movement vector's magnitude. So you can just make the animation transition be if the speed is greater than 0.01.
6:08 If the player movement didn't work, try restarting Unity. It Is going to ask you to enable the new movement backend.
Você é TUDO, eu sou do Brasil e preciso para a minha faculdade. Gratidão demais cara, de verdade
SIM, um divo
ajudou mt aqui
Love this tutorial video!
Would definitely enjoy one with a following camera as well :)
so I followed the movement code from 1:30 to 4:32 beat for beat yet when i try to run it or even continue on with the tutorial it keeps saying i need to fix "my compiler errors" yet wont tell me whats wrong. I don't know much about coding if any at all.
Great video!
It works perfect and thanks for the controller, although if i continuously " tap tap " the btn instead of holding btn, the character just get drag and animation doesnt change. How can i fix it?
you can use a variable in the animator called Speed to avoid using a lot of "or" in the animator transition, after that you need to set this on the update method:
animator.SetFloat("Speed", movement.sqrMagnitude);
Audio: 4 directional movment tutorial.
Video: has diagonal movement.
Aah, a Top-Down-movement tutorial
A true classic 😂. Never seen blendtrees in sprite animation. I guess it does save you some if-statements in code. ✌️
Curious as to why you use the Player Input component as opposed to using the C# class for the Input Actions.
my character animations won't work for left and right?
Gay
watafak this is the professional way to develop any game
bro is so the goat
Thanks for the tutorial!
thank you this was incredibly helpful thanks for being so thorough and explaining clearly
This is phenomenal! Is it possible to get an Attack tutorial similar to this with Blend Trees??
Can anyone help me to find a tutorial for top down game rpg with button controller. For my capstone project badly need it
Why don’t i have the input system?
see top right where it says packages make sure its set to registry not in project :)
Hello I want to ask about _moveAction = _playerInput.actions["Move"];
I tried to write that line, but somehow it shows error that PlayerInput doesn't has definition for 'actions'. I have same Input Manager version which is 1.7.0 and creating the same input action like what you do in the video. Can you help?
Do you still have this issue?
Can you please help with keeping a character within boundaries using this script? Been trying to use other tutorials but none of them are working! D:
Amazing video, ty so much! ❤
Quick question, to add attacks and more complex states, building a State Machine is better? Still learning, and I'm seeing a lot of different approaches.
Please provide the code, so i know that it's not the mistake of my typing, because i spend like a hour, squinting my eyes and looking for any errors,
I know that you didn't provide because you wanted to teach us, but please provide the code.
14:56 im going insane
Thank you so much !
is there any way i can remove diagonal movement from this?
also great tut by the way deserves a follow
add the following line above the _movement.Set(); on line 26. Just a heads up, it will prioritize X axis movement over Y axis. Maybe someone has a smarter way to do that, but this will get rid of diagonal.
if (InputManager.Movement.x != 0) InputManager.Movement.y = 0;
But how do i add buttons so i can play it on andorid?
these should be UI buttons you press (touch)
Looking good. So I can also make my project in Unity it seems but it would probably take longer, not sure. I’m using RPG MAKER MV with lots of JavaScript plugins and commands. I started looking at Unity, Python and GM but I’ve found the engine I want to make my game in.
perfect
This code is so goodddd❤❤❤?!!!!!!
Stop making your life harder by putting those dumb _ marks in your code
The underscore before private variables is a naming convention. it's not dumb lol , google it
Good tutorial but you just Whizz through everything. Maybe don't be in such a rush to create everything.
First