Forum begins after the advertisement:


[Part 4] Player gets stuck in the heal state and does not heal

Home Forums Video Game Tutorial Series Creating a Metroidvania in Unity [Part 4] Player gets stuck in the heal state and does not heal

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #11586
    Kiefer Neo
    Moderator
    Helpful?
    Up
    0
    ::

    If your player looks like it gets stuck in its heal animation and does not heal at all then it probably means that the Heal() method is calling at the incorrect time.

    If your Heal() method is calling under the if(pState.healing) return line this will cause the Heal() method to not get called as the Heal() method puts the player in the healing state.

    To remedy this simply move the Heal() method above the if(pState.healing) return line of code to fix this issue.

    #11590
    Kiefer Neo
    Moderator
    Helpful?
    Up
    0
    ::

    The player stuck in the healing state.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

Go to Login Page →


Advertisement below: