skeleton:clearTracks()¶
Type:
functionSee also: skeleton, skeleton:clearTrack()
Overview:¶
Stops and removes all animation tracks from the skeleton, leaving it with no active animations. This is a quick way to halt every animation at once.
Syntax:¶
skeleton:clearTracks()
Example:¶
-- Clear all running animations
print("is animation playing?", hero.isActive)
hero:clearTracks()
hero:draw()
print("track cleared, is animation playing?", hero.isActive)