SpriteAnimated an small tool to create animated sprites

Hi there, I’ve been working in a small package to create animated sprites.

One main feature is that you can add the same texture flipped, so is good to reuse textures. Also you can set logic to any frame. This is useful when you want to create different custom loops.
Here is a demo creating different loops and reusing the same texture:


Very nice! Rotating the sprite is a nice touch.

Why are you loading the sprite sheet twice?

    addFrames(soldier, 'https://i.ibb.co/k0sw5NS/60.png', 30, 2)
    addFrames(soldier, 'https://i.ibb.co/k0sw5NS/60.png', 30, 2, true)

The second one is flipped horizontaly. This way I can Ilustrate how to reuse the same spritesheet to create two different animations.

1 Like