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

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

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

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

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

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

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

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

  • @PrettyPixels1303
    @PrettyPixels1303 7 วันที่ผ่านมา

    Hello! I love this video so far! I am having trouble though at 5:52 , there is no option to press Move :( Do you have any ideas of what I did wrong?

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

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

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

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

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

    finally a recent video that works T_T

  • @YDVN
    @YDVN 7 วันที่ผ่านมา

    Hello, i followed this tutorial and the movement works awesome in my game, however, when i build the game to test the game out on my pc (with the .exe ) the controls don't work, nothing happens, there's no error in the console or anything, right now i have the same exact code as you at the end of #2 of this video, so i'm not sure what could be the issue, thanks :)

  • @GiangNguyen-ho5st
    @GiangNguyen-ho5st 4 หลายเดือนก่อน

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

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

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

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

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

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

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

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

      @@adriandvoracek2305 Hurray nice!