-
|
I am using flame_tiled to load a tmx map: var map = await TiledComponent.load( I need to change priority of some layers (to make the player move behind). In the old versions I used flame_tiled_utils, but they are not compatible with the latest versions of flame_tiled and I lose the animations on some tiles inserted in these layers. in the map I would like to change the priority of a layer with a certain name, without losing any animations, how can I do it? Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 11 replies
-
|
There isn't any support for that in Flame currently, this issue was also opened yesterday that you can follow: #3594 Not sure how much work it would be for @ASGAlex to update flame_tiled_utils to support the latest versions. |
Beta Was this translation helpful? Give feedback.
-
|
In the end I centralized everything in one class MapLayerCompiler, both for animations and static images. If you think it could work, I think it would be a breaking change, so I'll attach the zip of the three classes. Let me know what you think |
Beta Was this translation helpful? Give feedback.
@maxbax just uploaded fresh update to pub.dev, it seems to work correctly with latest Flame without any modifications.
@spydon but I also hope that somebody will implement this functionality in flame_tiled itself, because I become too far from Flame and Flutter at all 🙏🏼