There's really two different animations here. Costumes zero through four are for a happy, if slightly nervous strawberry.
Costumes five through nine are for a strawberry meeting a sticky end.
The idea is that we'll start with a very slow animation loop running from 0 to 4.
Then, when the spider touches the berry, we'll switch to a faster animation running 5 to 9, and not repeating.
It'll leave just a red berry mess where the strawberry used to be. Nice.
|