Player in Unity - Ep. 3

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

КОМЕНТАРІ • 16

  • @AmalieKae
    @AmalieKae 4 роки тому

    I always found animation in Unity really difficult and cumbersome. So it's always good being reminded of how it's done! Nice.

  • @hevet
    @hevet 3 роки тому

    Hi there! Any chance you can share some tips or some code from the player controller? Specially the jump style from Night in the Woods, it's something I love.

    • @Shinjingi
      @Shinjingi  3 роки тому

      If you go to the last episode of this series, you'll find the complete project in the video description!

  • @blackjack9240
    @blackjack9240 3 роки тому

    for some reason the run animation never seems to trigger. Jump no problem and idle same. Its crazy weird

    • @Shinjingi
      @Shinjingi  3 роки тому

      Check if the "speed" parameter in the animation goes above 0.1, if it doesn't that's the reason and it might depend on the values you set in the PlayerController2D script.

  • @ariana9084
    @ariana9084 4 роки тому

    whenever I played the game at first it was going well but then the player became HUGE, any way to fix this?

    • @Shinjingi
      @Shinjingi  4 роки тому

      I did run back the game and nothing happens on my side. Check everything related to the player or camera and if you can't find the problem i advice you to try disabling the player you created and just make a test 2d sprite with rigidbody, collider and the playercontroller script to see if the same thing happens. If it doesn't it's probably something related to the animation.

  • @АлександрКузин-ю4н

    Hi, I've run into a problem. My character moves really slow on the ground but when he jumps his speed becomes normal. And when he lands he becomes slow again. Any ideas what I did wrong?

    • @Shinjingi
      @Shinjingi  4 роки тому

      You should be able to solve this issue by setting the properties for the Rigidbody2D and the PlayerController2D as shown in the video. This happened to me once so i know for a fact that it's because the Acceleration and Max Speed property are not well balanced, making the character slow on the ground and back to normal when the Jump Force is applied.

    • @АлександрКузин-ю4н
      @АлександрКузин-ю4н 4 роки тому

      @@Shinjingi Dunno, checked these multiple times, but the properties are set just like in the video

    • @Shinjingi
      @Shinjingi  4 роки тому

      @@АлександрКузин-ю4н Sorry for the late reply, i would suggest you to remove the PlayerController2D and just try a different script to move the player, if that works, it means that you need to change the values for something that works for you. If it doesn't i'm going to send you the project and hope that will help.

    • @АлександрКузин-ю4н
      @АлександрКузин-ю4н 4 роки тому

      @@Shinjingi I tried a couple of other scripts but maybe I did something wrong and they didn't work for me. I'd really appreciate if you'd sent me your project so I could compare it with mine. Thanks in advance.

    • @Shinjingi
      @Shinjingi  4 роки тому

      @@АлександрКузин-ю4н Leave me your email here or send me a message on Instagram if you don't want for other people to know it.