There should be the ability to add "PlayOnce" animations. Animations that will only play through one time and will then have to be called again. This can be added in SpriteSheet.cpp around here:
Uint32 ticks = SDL_GetTicks();
Uint32 sprite = ((ticks / 100) % animationCollection[currentAnimation].frames);
SDL_Rect* spriteFrame = new SDL_Rect();
Rather than constantly looping through, we ensure that it only loops once.
There should be the ability to add "PlayOnce" animations. Animations that will only play through one time and will then have to be called again. This can be added in SpriteSheet.cpp around here:
Uint32 ticks = SDL_GetTicks(); Uint32 sprite = ((ticks / 100) % animationCollection[currentAnimation].frames); SDL_Rect* spriteFrame = new SDL_Rect();Rather than constantly looping through, we ensure that it only loops once.