Entity tiles incorrectly offset
This lamp entity is 3x1 in terms of tiles. It looks fine in LDtk but in game (I haven't done anything special to the entity in the code) the sprite sheet is shifted up by 1 tile, resulting in the sprite above it (a carrot in this case) to be shown, while cutting off the bottom tile.
Here's the code the entity uses. Nothing special.
#[derive(Default, Component)]
pub struct Lamp;
#[derive(Default, Bundle, LdtkEntity)]
pub struct LampBundle {
lamp: Lamp,
#[sprite_sheet_bundle]
sprite_bundle: LdtkSpriteSheetBundle,
}
Ingame:
In the editor:
Have you tried #[sprite_sheet_bundle(no_grid)]?
I had a similar problem when creating an entity that spanned more than one tile. I found the platformer example was doing something similar without issue, which is where I found the above.
Adding that worked in my case. I'm not sure what the no_grid parameter actually does though.