Howdy! How can I make an animation to stop when it’s done? I want to make the animation attack, when it’s done, play the idle animation
if self.isAttacking then
self.isAttacking = false
msg.post("#sprite", "play_animation", { id = hash("attack") })
end
Source of my code: