setToLast method
void
setToLast()
Sets this animation to be on the last frame.
Implementation
void setToLast() {
currentIndex = spriteAnimation.frames.length - 1;
clock = spriteAnimation.frames[currentIndex].stepTime;
elapsed = totalDuration();
update(0);
}