i’m making an enemy that is patrolling the area using paths, like i do to flip the enemy’s sprite, if i rotate it turns it upside down
You can add a onYoyo
callback to the follower config and flip the sprite there. And turn off rotateToPath
.
he does the flip, but when he goes back to the beginning he doesn’t flip, there is some way to verify that he has returned to the beginning since onYoyo only checks when it comes to the end
Either onLoop
or onRepeat
, I forget which.
thanks, man
Oh if there’s no looping then it’s just onComplete
.