Player Movement with Unity Input System - Top Down Unity 2D #1

Поділитися
Вставка
  • Опубліковано 15 вер 2024

КОМЕНТАРІ • 12

  • @GhostHack_1
    @GhostHack_1 Місяць тому

    Something to keep in mind when using the `Update()` function in unity, is `Time.deltaTime()`. You'll want to multiply by that when moving your player around to keep the experience smooth across multiple systems whose specs may differ and effect the framerate. Really like the format of your videos and your energy. Thanks so much!

  • @thisguymartin
    @thisguymartin 3 місяці тому +1

    Another fire video. That ending music just bring nostalgia. Keep at it!

    • @GameCodeLibrary
      @GameCodeLibrary  3 місяці тому

      Thank you!! The end music is cozy right! It's from a pokemon mystery dungeon game - which I've only played one of way back when I was young haha! Just found it when looking for a new theme to use online :-)

  • @TomDytorn
    @TomDytorn 3 місяці тому +2

    finally a recent video that works T_T

  • @pedromaganin2519
    @pedromaganin2519 3 місяці тому

    Thanks for this video! Im so excited for this top down series 🎉🎉

    • @GameCodeLibrary
      @GameCodeLibrary  3 місяці тому

      You're welcome!! The episodes should get more and more exciting as they go along :-)

  • @GiangNguyen-ho5st
    @GiangNguyen-ho5st 3 місяці тому

    I usually use GetAxisRaw to get instantaneous movement without acceleration or deceleration, does the new input system have an equivalent approach?

    • @GameCodeLibrary
      @GameCodeLibrary  3 місяці тому +2

      The context.ReadValue(); should give you the current value of the input axis without any smoothing, so it should be the same behavior of GetAxisRaw!

  • @adriandvoracek2305
    @adriandvoracek2305 3 місяці тому

    when i type input action it is working but in unity it shoves error (there is no red underline under InputAction)

    • @GameCodeLibrary
      @GameCodeLibrary  3 місяці тому

      Have you installed the Unity Input System package shown at 2:40?
      What is the error it's showing?

    • @adriandvoracek2305
      @adriandvoracek2305 3 місяці тому

      Oh i figured it out. ineeded to add using UnityEngine.InputSystem;

    • @GameCodeLibrary
      @GameCodeLibrary  3 місяці тому

      @@adriandvoracek2305 Hurray nice!