You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
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.
Ingame:
In the editor:
The text was updated successfully, but these errors were encountered: