Animation:sequence

Retrieves a Sequence by name.

Usage

animation:sequence(name)

Arguments

Name Type Description
name string Name of the sequence to look for. If the animation contains a single sequence, this parameter may be omitted.

Returns

Name Type Description
sequence Sequence Sequence with a matching name.

Examples

local spritesheet = crystal.assets.get("assets/sprites/hero.json");
local walk = spritesheet:animation("walk");
local sequence = walk:sequence("N");

This site uses Just the Docs, a documentation theme for Jekyll.