Parent / Child relationships with TileBundles. Chunking + a couple other questions #592
Replies: 1 comment 1 reply
-
We've been discussing this a bit over in #582 recently. You might find the discussion there interesting.
You can add Visibility propagation from individual tiles to their children might not work as you expect though.
You can totally make your tiles children of your
I think this is mostly for keeping track of moved tiles in the render chunks.
I don't know if I totally understand the question, but components on a tile entity are a great way to store associated data. Or a |
Beta Was this translation helpful? Give feedback.
-
I'm seeking help with some core ideas of bevy_ecs_tilemap.
I would like to spawn various things with my tile as I spawn them (i.e. tilebundle children). It seems all relationships of tiles and the things that could go in the tiles (i.e. animations, Text2d, etc..) are not actual children entities of the TileBundle's in the examples (please correct me if I'm wrong!). Whenever I try to spawn children of my tilebundles, it seems things never turn out the way I want, and I'm unsure if they are designed to be parent entities, or if I'm just simply doing something wrong.
I'm unable to take advantage of 2 general things because of this:
TilemapBundle
chunks that get all despawned at once.A few other questions I have:
TilemapBundle
will have it's own x/y position for each TileBundle and there's no idea of a universe x/y coordinate when you are chunking and will have many TilemapBundle's at once. I was thinking it would be useful to have a component with the universe x/y position, but interested if this is ill advised.old_position
for TileBundles?Thanks!!
Beta Was this translation helpful? Give feedback.
All reactions