Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

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

- - - - -
No replies to this topic
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

Dimahh90

[GLOBAL: userInfoPane.html]
Dimahh90
  • 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?

Thanks
 




[topic_controls]
[/topic_controls]