How do I render an animation where some frames appear twice?
Posted
by
hustlerinc
on Game Development
See other posts from Game Development
or by hustlerinc
Published on 2012-07-28T03:52:53Z
Indexed on
2014/06/04
15:47 UTC
Read the original article
Hit count: 222
I am animating a sprite. The sprite has 7 different frames, but the animation is 10 frames long. This is because 3 of the original frames appear twice in the animation:
3 -> 4 -> 5 -> 6 -> 4 -> 3 -> 2 -> 1 -> 0 -> 2
Frames 2, 3 and 4 appear twice. This avoids having to store duplicate frames in the spritesheet.
How can I render the animation in this sequence with repeated frames?
© Game Development or respective owner