Get the number of frames in the animation
Get the current frame number
Get the size of a single animation frame
Get the area of the source image (expressed as a fraction of the source image size) that is being used to draw this animation. If this wasn't modified with setImageArea(), by default the animation uses the full image from (0, 0) to (1, 1).
Get the name of the image being used. This returns the full path and file name, including the basePath if a basePath was set. For a relative path, use Animation.getRelativeImageName()
Get the size of the image (i.e. the whole sprite sheet) being used for the animation
Get the name of the image being used. This returns the relative file name, NOT including the basePath even if a basePath was set. For an absolute path, use Animation.getImageName()
Play the animation
Animation.serialize (stringify, propertiesToExclude)
Export this animation to an object that can then be used to create a new animation like this one (by passing the resulting object to the Animation constructor).
Enable or disable blending between animation frames. This is false by default.
Set the current animation frame
Animation.setImageArea (minX, minY, maxX, maxY)
Set the area of the source image that should be used to draw this animation. Numbers should be between 0 and 1, representing a fraction of the source image size.
Set an offset for this animation. The parent sprite will be moved by this offset when this animation is playing
Set the current animation speed