By head, I suggest to use
event attribute of
frame object of your
sprite.
Then you'll be able to write some global function, where you may use
GetEvent of
frame object, which returns name of the event. So if you enters time value as event, you can use it to make your game automatically detect, if actual animation should be looped from the start or not.
Hope you get the point of this.
