spriteUtilities
spriteUtilities copied to clipboard
Updated end of Animation Loop
Added an onComplete function call to the end of the animation loop, so we can have a user-defined onComplete function. This is setup the same way as everything else (sprite.onComplete = () => {} )
I saw the loop was continuously being called even after all the animation frames had finished, so also stopped that.