ThreeCoffees / Unity-Platformer

0 stars 0 forks source link

Animation bug on moving platforms #19

Closed gre-v-el closed 2 hours ago

gre-v-el commented 2 hours ago

The walking animation of the player is playing while the player is standing on a moving platform.

Possible fix: instead of checking player velocity when calculating isWalking, check player velocity - current platform velocity

ThreeCoffees commented 2 hours ago

Possible solution: set isWalking based on moveInput instead of velocity

ThreeCoffees commented 2 hours ago

Should be fixed now on branch lab-2. Works for me at least. Also fixed isGrounded activating in jump points.