Skip to content

PlayOnce Animations #18

Description

@DCCoder90

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions