Are tiles in the same tilemap always supposed to have the same z coordinate? #420
Closed
AntonZelenin
started this conversation in
General
Replies: 1 comment 2 replies
-
Individual tiles in a tilemap don't have their own z values. The tilemap is rendered together as one big chunk with the z value from the transform in the See https://github.com/StarArawn/bevy_ecs_tilemap/blob/main/examples/layers.rs for an example of multiple tilemaps layered on top of each other. You can use any z coordinates you want. Higher values will layer on top of lower values. Keep in mind that by default Bevy's 2d camera shows entities with values between -0.1 and 999.9 or so. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, are tiles in the same tilemap always supposed to have the same z coordinate? I assumed all of them have z coordinates the same as the z coordinate of the tilemap itself.
If they could be different, I'd like to know if that's documented somewhere and what z coords I should use for my tilemaps that are on top of each other so that they do not overlap, thanks.
Beta Was this translation helpful? Give feedback.
All reactions