Hello everyone! 🌊
I already have a working movement and animation system in my project:
PlayerMove handles the player’s movement.
PlayerSprite handles the player’s animations.
Everything works fine — the player can walk, and the correct animations (Walk / Idle) play depending on the movement.
Now I’d like to add a new feature:
👉 When the player enters the water, they should:
Switch to a “Swim” animation.
Move slower than on land.
👉 When the player leaves the water, they should:
Go back to the Walk or Idle animation.
Regain their normal movement speed.
Could someone please help me figure out how to set up this system?
Any examples or advice would be greatly appreciated! 🙏