Hello,
I’m trying to start playback of a sprite on a specific frame index, rather than starting on frame 1. However, when I do this, Corona displays frame 1, then skips to the frame after the frame index I set as the starting point.
This is my sequenceData:
[lua]{
name=“animSequence”,
frames={1,2,3,4,5},
loopCount = 1
}[/lua]
And this is the playback code:
[lua]mySprite:setSequence(“animSequence”)
mySprite:setFrame(2)
mySprite:play()[/lua]
In this example, frame 1 would display, followed by frames 3, 4, and 5. However, Corona reports (via mySprite.frame) that frames 2, 3, 4, and 5 are played, despite what I’m seeing visually in the simulator.
Anything I’m doing wrong or misunderstanding?
Thanks!
- David [import]uid: 149111 topic_id: 34012 reply_id: 334012[/import]