Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

Corona SDK Sprite Example: Multiple Sequences

View sprite3.lua
1 2 3 4 5 6 7 8 9
-- Example assumes 'imageSheet' already created using graphics.newImageSheet()
 
local sequenceData = {
{ name="walking", start=1, count=3 },
{ name="running", frames={ 3, 4, 5, 6, 7, 8 }, time=50, loopCount=4 },
{ name="jumping", start=9, count=13, time=300 }
}
 
local character = display.newSprite( imageSheet, sequenceData )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.