Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]

sprite.frame doesn't update after sequence played
Started by Dimahh90 May 29 2019 10:03 AM

- - - - -
No replies to this topic
[TOPIC: post.html]


[GLOBAL: userInfoPane.html]
  • Enthusiast

  • 45 posts
  • Corona SDK

Hey guys,
I need to get the frame from an sprite after it has done it's animation through the sprite:play( ) function.
After the sprite has done its animation, which I see with a spriteListener, I print the sprite.frame variable, and it's still the old value from before the sequence has started. Also when I do more animations after that it just doesn't seem to update at all.

Sprite.sequence is getting updated, it's just the frame one that stays the same.

Is there something I do wrong or isn't the frame variable updating?