Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using shared AnimatedSprite for multiple characters #104

Open
mk1024 opened this issue Mar 21, 2024 · 1 comment
Open

Using shared AnimatedSprite for multiple characters #104

mk1024 opened this issue Mar 21, 2024 · 1 comment
Labels
🆕 Feature Request This is a new feature being requested. 🆕 Status: New This issue or pull request is new and has not been looked at yet.

Comments

@mk1024
Copy link

mk1024 commented Mar 21, 2024

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 :-)

@AristurtleDev AristurtleDev added 🆕 Feature Request This is a new feature being requested. 🆕 Status: New This issue or pull request is new and has not been looked at yet. labels Mar 21, 2024
@AristurtleDev
Copy link
Owner

Thanks for the suggestion @mk1024, I'll look into this.

I'm currently working on updating the core part of the lib to use the new released AsepriteDotNet, so it may be a few days before I can get to this, but I'll post anyy updates here in this thread

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🆕 Feature Request This is a new feature being requested. 🆕 Status: New This issue or pull request is new and has not been looked at yet.
Projects
None yet
Development

No branches or pull requests

2 participants