Hi,
I have a sprite set instance running fine on the first time of calling it (instance1.play())
However, when i call it second time (using instance1.play() as well), the sprite animiation DO NOT stop.
Do you have any idea?
The sprite sheet setup is a normal one just like below…
local sheet = sprite.newSpriteSheet( “sample.png”,255,200)
local spriteSet = sprite.newSpriteSet(sheet, 1, 8)
sprite.add( spriteSet, “cat”, 1, 8, 1000, 0 ) – play 8 frames every 1000 ms
local instance1 = sprite.newSprite( spriteSet )
instance1.x = 2* display.contentWidth / 4 + 30
instance1.y = baseline - 5
instance1.xScale = .5
instance1.yScale = .5
instance1:prepare(“cat”)
instance1:play()
(some other tasks codes… )
instance1:play()
Thanks for help! [import]uid: 9927 topic_id: 10395 reply_id: 310395[/import]
[import]uid: 12482 topic_id: 10395 reply_id: 37884[/import]
[import]uid: 46142 topic_id: 10395 reply_id: 38271[/import]