TOP DOWN Movement - Unity Tutorial

Поделиться
HTML-код
  • Опубликовано: 12 июн 2024
  • Show your Support & Get Exclusive Benefits on Patreon (Including Access to this tutorial Source Files + Code) - / sasquatchbgames
    Join our Discord Community! - / discord
    --
    Let's have a look at the easiest (and most expandable) way to create top-down movement for your game! - This could easily be adaptaed to suit 8 directional movement as well!
    --
    Timestamps:
    00:00 - What we're making
    00:21 - preparing our sprites
    01:08 - setting up input
    04:31 - player movement
    06:14 - setting up the animations
    09:06 - setting up the animation transition logic
    12:30 - applying the transition logic in code
    13:30 - adding idles that look in proper direction
    15:44 - adding gamepad support
    --
    Links:
    prf.hn/click/camref:1100lwgBQ...
    ---
    In need of more Unity Assets? Using our affiliate link is a great way to support us. We get a small cut that helps keep us up and running: assetstore.unity.com?aid=1100lwgBQ
    ---
    Who We Are-------------------------------------
    If you're new to our channel, we're Brandon & Nikki from Sasquatch B Studios. We sold our house to start our game studio, and work full time on building our business and making our game, Veil of Maia.
    Don't forget to Subscribe for NEW game dev videos every Monday & Thursday!
    Wishlist our games:
    Wishlist Samurado!
    store.steampowered.com/app/23...
    Wishlist Veil of Maia! - store.steampowered.com/app/19...
    Follow us on Twitter for regular updates!
    / sasquatchbgames
    #unitytutorial #unity2d #unity3d
  • ИгрыИгры

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

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

    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 3 месяца назад +1

    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!

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

    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!

  • @myronleee
    @myronleee 19 дней назад +1

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

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

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

  • @TomDytorn
    @TomDytorn 22 дня назад

    Your method is so clean

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

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

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

    Cheers dude! Never heard of the Input System! 😄

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

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

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

    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!

  • @megazord5696
    @megazord5696 7 дней назад

    Thanks for the tutorial!

  • @megazord5696
    @megazord5696 7 дней назад

    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 3 месяца назад

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

  • @Psclstam
    @Psclstam 2 дня назад

    Thank you so much !

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

    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.

  • @blakejett3500
    @blakejett3500 29 дней назад

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

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

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

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

    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.

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

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

  • @im_an_intern_unity_dev
    @im_an_intern_unity_dev 17 дней назад

    perfect

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

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

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

    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:

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

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

  • @KhaiTruong-mc1hf
    @KhaiTruong-mc1hf 17 дней назад +2

    Why don’t i have the input system?

    • @DafyddEvans5
      @DafyddEvans5 7 дней назад +1

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

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

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

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

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

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

      also great tut by the way deserves a follow

    • @Sepu1tra
      @Sepu1tra 14 дней назад

      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;

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

    First