Trouv / bevy_ecs_ldtk

ECS-friendly ldtk plugin for bevy, leveraging bevy_ecs_tilemap
Other
674 stars 76 forks source link

Add `LayerMetadata` entities for Entity layers #224

Closed tsalkenov closed 11 months ago

tsalkenov commented 1 year ago

i used LayerMetadata to edit transforms of other types of layers. But it seems like entity layer doesn't have LayerMetadata or i may be wrong

Trouv commented 1 year ago

You're right, if doesn't at the moment. For now entities are children of the level entity. I've been meaning to give entity layers their own entity as well but haven't gotten around to it yet, sorry about that. For now you might just need to manually edit the z value on the individual entities instead.

tsalkenov commented 1 year ago

I'm trying create collider the size of the whole level but on lower z index to make gravity push player against map surface. but player just falls through collider because of the same z index, i guess i will just lower background. Should i keep the issue open?

Trouv commented 1 year ago

Sure, it's a little related to #116, but I think I'll dedicate this issue to "Add LayerMetadata entities for Entity Layers" specifically. I hope you don't mind if I update the issue title accordingly.