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

Animate animated-tiles in maps ? #51

Closed
SuperUserNameMan opened this issue Jan 15, 2022 · 1 comment
Closed

Animate animated-tiles in maps ? #51

SuperUserNameMan opened this issue Jan 15, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@SuperUserNameMan
Copy link

Hello again !

My map contains animated tiles.
But when the map is displayed, these tiles are not animated.

I tried to add a maps["myMap"].update(), but no success.

Bug or missing-feature ?

@pmgl
Copy link
Owner

pmgl commented Jan 18, 2022

There is no such feature for now. I have considered this idea in the past. Maps are pre-rendered to a buffer and was thinking to achieve animation by having as many buffers as there are animation frames. The problem is that in the same map you may be using different sprites with different frame rates or different number of frames, which makes the whole approach much more complicated. Maybe I should rethink this, make maps only partially pre-rendered (static tiles only) and paint the few animated tiles on top of it. That would work fine, provided the map is not a 100x100 grid filled with only animated sprites!

@pmgl pmgl added the enhancement New feature or request label Jan 18, 2022
@pmgl pmgl closed this as completed in f81c4ec May 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants