Last active
December 17, 2015 13:59
-
-
Save srdjan-m/5621711 to your computer and use it in GitHub Desktop.
corona: sprite sequence (consecutive frames)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local sequenceData = { | |
{ | |
name = "normalRun", --name of animation sequence | |
start = 1, --starting frame index | |
count = 8, --total number of frames to animate consecutively before stopping or looping | |
time = 800, --optional, in milliseconds; if not supplied, the sprite is frame-based | |
loopCount = 0, --optional. 0 (default) repeats forever; a positive integer specifies the number of loops | |
loopDirection = "forward" --optional, either "forward" (default) or "bounce" which will play forward then backwards through the sequence of frames | |
} --if defining more sequences, place a comma here and proceed to the next sequence sub-table | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment