Hi everyone, I’m using PlayCanvas and testing out spine2D animations, trying to get animations to play based on flags related to character movement (e.g. isOnGround, isMoving, etc.)
My initial attempt consists of conditionally calling setAnimation() per frame. What happens is that for every frame update the animation I want to play is always being restarted, which makes the animation look like it’s stuck on one frame.
How do I fix this?
Project: https://playcanvas.com/editor/scene/874238