👽 SpriteMixer for easy sprite animations

Hi there,
I made an easy-to-use tool to make sprite animations simpler, as I saw there is nothing built-in.
Have a try here : https://felixmariotto.github.io/spritemixer
Here is the source : https://github.com/felixmariotto/three-SpriteMixer

Main functionalities :

////////////
/// actionSprite is an extended THREE.SPRITE
////////////

actionSprite.playOnce();
// make the sprite visible and play it only once

actionSprite.playLoop();
// play the sprite animation in a loop

actionSprite.stop();
// stop the action and reset

actionSprite.pause();
// pause the action without reset

actionSprite.pauseNextEnd();
// let the action finish its current animation, then stop it

actionSprite.resume();
// resume the action if it was paused before its end

actionSprite.clampWhenFinished = true;
// make the action stop on last frame when it finishes, reset if false

actionSprite.hideWhenFinished = true;
// set the object.visible = false at last frame if true
3 Likes