Skip to content

Using shared AnimatedSprite for multiple characters #104

@mk1024

Description

@mk1024

Hi there, first let me thank you for this wonderful library.
Thanks to everyone who keeps this project going!

Scenario
Imagine a Lemmings-like scenario where you have multiple instances of the same animation. Since the animation is always the same, a single shared AnimationSprite should be sufficent to draw multiple characters at different positions. So far, this works as expected.

Problem
The animation of each character should be time-shifted, so that the animations do not run synchronously. Ideally there would be an offset that just shifts the animation in time. I have tried to forward and rewind the animation for each draw call with Update and IsReversed but nothing worked.

So, I'd like to suggest a feature that supports this use case - or find a workaround :-)

Metadata

Metadata

Assignees

No one assigned

    Labels

    🆕 Feature RequestThis is a new feature being requested.🆕 Status: NewThis issue or pull request is new and has not been looked at yet.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions