I'm having trouble figuring out the "not moving" part of the moveTo function. Here's the code:
I just want the cow sprite to move to a point, then change its animation, but the "not moving" condition is never met. The cow does stop moving along the X axis, but the animation doesn't change. I've also tried checking every tick if the cow is moving (also tried checking if the speed is zero), but that doesn't work, either.
Any help would be appreciated, thanks.