Page 1 of 1

[Request] Add flag or property to entities to render as tile

Posted: Sun Jul 01, 2018 8:27 pm
by Arch666Angel
As the title says, I would like to have the ability to set a flag or property so that an entity can be rendered as ground tile.
Example where I need this:
To make lamps that can be placed on a path and are walkable, or simple entities that are used as ground decorations with an animation. There are some hacky solution with setting the collision_box in weird ways, but this will just create other issues that are then open to the player to avoid.

This is an example with an already "hacky" 9x1 collision_box

Image

Image

Re: [Request] Add flag or property to entities to render as tile

Posted: Sun Jul 01, 2018 9:11 pm
by Rseding91
Due to how tiles work it's not possible to render an entity in the tile layer. Tiles render into their own atlas which is put under all entities drawn.

Re: [Request] Add flag or property to entities to render as tile

Posted: Sun Jul 01, 2018 9:29 pm
by Arch666Angel
Any other solution that would allow for the entity to render "below" all the other entities? I know that you can set it to use the ghost_layer, but again that introduces other issues that would be up to the player to prevent then.

Re: [Request] Add flag or property to entities to render as tile

Posted: Mon Jul 02, 2018 11:11 am
by BenSeidel
Can you split the entity up into two entities? one for rendering and one for selection?
If you place the rendering entity significantly above the selection entity then it will always be considered to be above the player's location, hence won't be rendered over the top of the player.

Re: [Request] Add flag or property to entities to render as tile

Posted: Mon Mar 18, 2019 11:48 pm
by Boodals
Im pretty late, but in 0.17 this can sorta be done with LuaRendering and the draw_on_ground flag.