hi there,
local function spriteListener( event )
if event.phase == "began" then
-- sequence has began playing; do something
elseif event.phase == "ended" then
-- sequence has reached the last frame; do something
end
end
-- Add sprite listener
spriteObject:addEventListener( "sprite", spriteListener )
when will we be able to get a state like “next”? right now the listener only gets called for first and last frame of the animation.
[import]uid: 90610 topic_id: 27157 reply_id: 327157[/import]