Skip to content

animation_repeats

Return the explicit repeat count of an animation, or nil.

Parameters

  • atlas — An atlas.
  • name — An animation name.
local count = animation_repeats(atlas, "walk")

Related: animation_frame.

See the animations guide for more examples and limits.