Forum begins after the advertisement:

Save Soil

The Save Soil Movement

Poor farming practices and policies across the world have led to the degradation of agricultural soils in the world. This has led to the loss of nutritional value in our food over the years, and it will affect our food production capabilities in the coming decades.

Learn more about Save Soil →


[Part 1] Player’s legs do not animate along with the rest of the Body

  • 31 August 2023: We recently fixed a bug where our Patrons were not getting their titles displayed properly on their posts.

Home Forums Video Game Tutorial Series Creating a Farming RPG in Unity [Part 1] Player’s legs do not animate along with the rest of the Body

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #11685
    Kiefer Neo
    Moderator

    To fix this, you can make your Walk parameter a Float, and do something like:

    anim.SetFloat("Walk", agent.velocity.magnitude).

    Then in the transitions, set the transition from Idle to Walk whenever “Walk” (the parameter) is greater than 0; and set a transition from Walk to Idle whenever “Walk” is less than 0.1.

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.

Go to Login Page →


Advertisement below: