How to make 2D Pixel Art Animations in the Unity Engine

Поделиться
HTML-код
  • Опубликовано: 16 окт 2024

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

  • @sophiayuna
    @sophiayuna 2 года назад

    oooo very nice

  • @OnyeNacho
    @OnyeNacho 2 года назад

    Is there a faster way to scale the animations instead of manually adjusting them? What happened to the Sampler?

  • @MitoLulaGamer
    @MitoLulaGamer 3 года назад

    It really help me! Thanks!

  • @Skuffy_
    @Skuffy_ 2 года назад

    Hello , can someone help me :( wath do i need to put in UI Keyboard and UI Gamepad and Character holder? pls?

    • @Skuffy_
      @Skuffy_ 2 года назад

      i fix it!!

  • @EnemyOTS
    @EnemyOTS 3 года назад

    i watched your Tutorial looking for an answer to my issues which is When i walk to the right the walking animation works but when i start walking to the left my character goes back to Idle. any idea why would that happen mate ?
    if (moveInput > 0.01)
    {
    animator.SetBool("Walking", true);
    }
    else if (moveInput < 0.01)
    {
    animator.SetBool("Walking", false);

    • @EmilioBlacksmith
      @EmilioBlacksmith  3 года назад

      If(moveInput > 0)
      {
      Animator. SetBool("Walking", true);
      }
      else if(moveInput < 0)
      {
      Animator.SetBool("Walking", true);
      }
      else
      {
      Animator.SetBool("Walking", false);
      }
      That's because the horizontal input is going towards -1, when going left, and 1 when going right, and its 0 when you are not moving.
      I hope it works

    • @EnemyOTS
      @EnemyOTS 3 года назад

      @@EmilioBlacksmith Thank you for the answer but its not working
      ( error CS0120: An object reference is required for the non-static field, method, or property 'Animator.SetBool(string, bool)' )
      without the else statement the character will stay in walking animation all the time and never go back to idle ofcource. I'm running out of ideas honestly.

    • @EmilioBlacksmith
      @EmilioBlacksmith  3 года назад +1

      @@EnemyOTS Awww sorry, change it to animator, with lowercase a, because its searching for the animator component inside the object. animator.SetBool

    • @EnemyOTS
      @EnemyOTS 3 года назад

      @@EmilioBlacksmith you are a genius! worked like a charm. thank you so much.

    • @EmilioBlacksmith
      @EmilioBlacksmith  3 года назад

      @@EnemyOTS no problem mate, I'm here to help