TOP DOWN Movement - Unity Tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 16 ธ.ค. 2024

ความคิดเห็น • 55

  • @sasquatchbgames
    @sasquatchbgames  9 หลายเดือนก่อน +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!

  • @Wildcat12
    @Wildcat12 7 วันที่ผ่านมา +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!

  • @StealthyShiroeanGames
    @StealthyShiroeanGames 9 หลายเดือนก่อน +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!

  • @rickiousproductions
    @rickiousproductions 10 หลายเดือนก่อน

    Cheers dude! Never heard of the Input System! 😄

  • @oscarlai9511
    @oscarlai9511 4 หลายเดือนก่อน +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!

  • @99darkprince
    @99darkprince 10 หลายเดือนก่อน

    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!

  • @myronrudyi
    @myronrudyi 6 หลายเดือนก่อน +2

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

  • @slimypandax
    @slimypandax 2 หลายเดือนก่อน

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

  • @Awesomebubba80
    @Awesomebubba80 7 หลายเดือนก่อน

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

  • @JericoRakk
    @JericoRakk หลายเดือนก่อน

    Exactly what I needed, thanks.

  • @travisalstrand4237
    @travisalstrand4237 2 หลายเดือนก่อน

    Masterful as always. Thank you!!

  • @qoaaoq3838
    @qoaaoq3838 9 หลายเดือนก่อน

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

  • @BrawlBros36
    @BrawlBros36 9 หลายเดือนก่อน

    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!

  • @TomDytorn
    @TomDytorn 7 หลายเดือนก่อน

    Your method is so clean

  • @valonyaver600
    @valonyaver600 4 หลายเดือนก่อน

    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.

  • @megazord5696
    @megazord5696 6 หลายเดือนก่อน

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

  • @giokazu4356
    @giokazu4356 9 หลายเดือนก่อน +1

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

    • @dokidokiab
      @dokidokiab หลายเดือนก่อน

      SIM, um divo
      ajudou mt aqui

  • @pepdawg18
    @pepdawg18 7 หลายเดือนก่อน

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

  • @akaEmmerald
    @akaEmmerald 6 หลายเดือนก่อน

    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.

  • @muftahash
    @muftahash 6 วันที่ผ่านมา

    Great video!

  • @ZalaanAli
    @ZalaanAli 2 หลายเดือนก่อน

    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?

  • @lucaszoka1474
    @lucaszoka1474 9 หลายเดือนก่อน

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

  • @Shyira1
    @Shyira1 6 หลายเดือนก่อน +2

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

  • @iiropeltonen
    @iiropeltonen 10 หลายเดือนก่อน

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

  • @MarushiaDark316
    @MarushiaDark316 10 หลายเดือนก่อน

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

  • @ciaran8317
    @ciaran8317 8 หลายเดือนก่อน +2

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

  • @316ti
    @316ti หลายเดือนก่อน

    watafak this is the professional way to develop any game

  • @qanzii5949
    @qanzii5949 2 หลายเดือนก่อน

    bro is so the goat

  • @megazord5696
    @megazord5696 6 หลายเดือนก่อน

    Thanks for the tutorial!

  • @mayabakke
    @mayabakke 2 หลายเดือนก่อน

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

  • @blakejett3500
    @blakejett3500 7 หลายเดือนก่อน

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

  • @luisalvinhermo
    @luisalvinhermo 5 หลายเดือนก่อน

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

  • @KhaiTruong-mc1hf
    @KhaiTruong-mc1hf 6 หลายเดือนก่อน +2

    Why don’t i have the input system?

    • @DafyddEvans5
      @DafyddEvans5 6 หลายเดือนก่อน +3

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

  • @EleanorCo-fh8ue
    @EleanorCo-fh8ue 4 หลายเดือนก่อน

    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 2 หลายเดือนก่อน

      Do you still have this issue?

  • @piper7521
    @piper7521 8 หลายเดือนก่อน

    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:

  • @manelsworld
    @manelsworld 8 หลายเดือนก่อน

    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.

  • @Elytraz17
    @Elytraz17 5 หลายเดือนก่อน +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.

  • @floccinaucinihilipilificat6749
    @floccinaucinihilipilificat6749 2 หลายเดือนก่อน

    14:56 im going insane

  • @Psclstam
    @Psclstam 6 หลายเดือนก่อน

    Thank you so much !

  • @beraate7097
    @beraate7097 8 หลายเดือนก่อน

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

    • @beraate7097
      @beraate7097 8 หลายเดือนก่อน

      also great tut by the way deserves a follow

    • @Sepu1tra
      @Sepu1tra 6 หลายเดือนก่อน

      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;

  • @paulpapa652
    @paulpapa652 10 หลายเดือนก่อน

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

    • @giampaolomannucci8281
      @giampaolomannucci8281 10 หลายเดือนก่อน

      these should be UI buttons you press (touch)

  • @-LightSmit
    @-LightSmit 10 หลายเดือนก่อน

    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.

  • @im_an_intern_unity_dev
    @im_an_intern_unity_dev 6 หลายเดือนก่อน

    perfect

  • @mid_day4745
    @mid_day4745 5 หลายเดือนก่อน

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

  • @porkyminch5131
    @porkyminch5131 2 หลายเดือนก่อน +2

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

    • @mirm0n
      @mirm0n 2 หลายเดือนก่อน

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

  • @wilsonlysford5268
    @wilsonlysford5268 5 หลายเดือนก่อน

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

  • @Coco-gg5vp
    @Coco-gg5vp 10 หลายเดือนก่อน

    First