TOP DOWN Movement - Unity Tutorial

Поделиться
HTML-код
  • Опубликовано: 8 фев 2025

Комментарии •

  • @sasquatchbgames
    @sasquatchbgames  11 месяцев назад +5

    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!

  • @StealthyShiroeanGames
    @StealthyShiroeanGames 11 месяцев назад +3

    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!

  • @Wildcat12
    @Wildcat12 2 месяца назад +1

    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!

  • @ChowdiusPupperMemusII
    @ChowdiusPupperMemusII 2 часа назад +1

    This is so helpful thanks!

  • @99darkprince
    @99darkprince 11 месяцев назад

    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!

  • @oscarlai9511
    @oscarlai9511 6 месяцев назад +1

    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!

  • @myronrudyi
    @myronrudyi 8 месяцев назад +2

    For me it is the best tutorial about top down movement) Thank you for your videos that helps me to keep learning gamedev!

  • @rickiousproductions
    @rickiousproductions 11 месяцев назад

    Cheers dude! Never heard of the Input System! 😄

  • @slimypandax
    @slimypandax 4 месяца назад

    How does this not have more views?????? Best tutorial out there for sure!

  • @qoaaoq3838
    @qoaaoq3838 11 месяцев назад

    I wanted this!! I'm so happy to finally find this way to move. Thank you!😆

  • @BrawlBros36
    @BrawlBros36 10 месяцев назад

    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!

  • @Awesomebubba80
    @Awesomebubba80 9 месяцев назад

    thank you so much. You have my utmost respect as this saved me from disappointing my class

  • @travisalstrand4237
    @travisalstrand4237 3 месяца назад

    Masterful as always. Thank you!!

  • @JericoRakk
    @JericoRakk 3 месяца назад

    Exactly what I needed, thanks.

  • @valonyaver600
    @valonyaver600 6 месяцев назад

    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.

  • @pepdawg18
    @pepdawg18 9 месяцев назад

    Love this tutorial video!
    Would definitely enjoy one with a following camera as well :)

  • @TomDytorn
    @TomDytorn 8 месяцев назад

    Your method is so clean

  • @giokazu4356
    @giokazu4356 11 месяцев назад +1

    Você é TUDO, eu sou do Brasil e preciso para a minha faculdade. Gratidão demais cara, de verdade

    • @dokidokiab
      @dokidokiab 3 месяца назад

      SIM, um divo
      ajudou mt aqui

  • @mayabakke
    @mayabakke 4 месяца назад

    thank you this was incredibly helpful thanks for being so thorough and explaining clearly

  • @muftahash
    @muftahash Месяц назад

    Great video!

  • @iiropeltonen
    @iiropeltonen 11 месяцев назад

    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. ✌️

  • @megazord5696
    @megazord5696 8 месяцев назад

    Thanks for the tutorial!

  • @qanzii5949
    @qanzii5949 4 месяца назад

    bro is so the goat

  • @lucaszoka1474
    @lucaszoka1474 11 месяцев назад

    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);

  • @Psclstam
    @Psclstam 8 месяцев назад

    Thank you so much !

  • @316ti
    @316ti 3 месяца назад

    watafak this is the professional way to develop any game

  • @Shyira1
    @Shyira1 8 месяцев назад +2

    Audio: 4 directional movment tutorial.
    Video: has diagonal movement.

  • @im_an_intern_unity_dev
    @im_an_intern_unity_dev 8 месяцев назад

    perfect

  • @megazord5696
    @megazord5696 8 месяцев назад

    6:08 If the player movement didn't work, try restarting Unity. It Is going to ask you to enable the new movement backend.

  • @blakejett3500
    @blakejett3500 9 месяцев назад

    This is phenomenal! Is it possible to get an Attack tutorial similar to this with Blend Trees??

  • @manelsworld
    @manelsworld 10 месяцев назад

    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.

  • @MarushiaDark316
    @MarushiaDark316 11 месяцев назад

    Curious as to why you use the Player Input component as opposed to using the C# class for the Input Actions.

  • @akaEmmerald
    @akaEmmerald 7 месяцев назад +1

    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.

  • @ZalaanAli
    @ZalaanAli 3 месяца назад

    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?

  • @luisalvinhermo
    @luisalvinhermo 7 месяцев назад

    Can anyone help me to find a tutorial for top down game rpg with button controller. For my capstone project badly need it

  • @-LightSmit
    @-LightSmit 11 месяцев назад

    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.

  • @ciaran8317
    @ciaran8317 10 месяцев назад +2

    my character animations won't work for left and right?

  • @piper7521
    @piper7521 10 месяцев назад

    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:

  • @mid_day4745
    @mid_day4745 7 месяцев назад

    This code is so goodddd❤❤❤?!!!!!!

  • @Elytraz17
    @Elytraz17 7 месяцев назад +1

    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.

  • @KhaiTruong-mc1hf
    @KhaiTruong-mc1hf 8 месяцев назад +2

    Why don’t i have the input system?

    • @DafyddEvans5
      @DafyddEvans5 8 месяцев назад +3

      see top right where it says packages make sure its set to registry not in project :)

  • @EleanorCo-fh8ue
    @EleanorCo-fh8ue 6 месяцев назад

    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?

    • @slimypandax
      @slimypandax 4 месяца назад

      Do you still have this issue?

  • @floccinaucinihilipilificat6749
    @floccinaucinihilipilificat6749 3 месяца назад

    14:56 im going insane

  • @paulpapa652
    @paulpapa652 11 месяцев назад

    But how do i add buttons so i can play it on andorid?

  • @beraate7097
    @beraate7097 10 месяцев назад

    is there any way i can remove diagonal movement from this?

    • @beraate7097
      @beraate7097 10 месяцев назад

      also great tut by the way deserves a follow

    • @Sepu1tra
      @Sepu1tra 8 месяцев назад

      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;

  • @wilsonlysford5268
    @wilsonlysford5268 7 месяцев назад

    Good tutorial but you just Whizz through everything. Maybe don't be in such a rush to create everything.

  • @Coco-gg5vp
    @Coco-gg5vp 11 месяцев назад

    First

  • @porkyminch5131
    @porkyminch5131 4 месяца назад +3

    Stop making your life harder by putting those dumb _ marks in your code

    • @mirm0n
      @mirm0n 3 месяца назад +1

      The underscore before private variables is a naming convention. it's not dumb lol , google it