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
[Request] Add flag or property to entities to render as tile
- Arch666Angel
- Smart Inserter
- Posts: 1636
- Joined: Sun Oct 18, 2015 11:52 am
- Contact:
[Request] Add flag or property to entities to render as tile
Angels Mods
I. Angel's Mods Subforum
II. Development and Discussion
III. Bugs & FAQ
"should be fixed"
I. Angel's Mods Subforum
II. Development and Discussion
III. Bugs & FAQ
"should be fixed"
Re: [Request] Add flag or property to entities to render as tile
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.
If you want to get ahold of me I'm almost always on Discord.
- Arch666Angel
- Smart Inserter
- Posts: 1636
- Joined: Sun Oct 18, 2015 11:52 am
- Contact:
Re: [Request] Add flag or property to entities to render as tile
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.
Angels Mods
I. Angel's Mods Subforum
II. Development and Discussion
III. Bugs & FAQ
"should be fixed"
I. Angel's Mods Subforum
II. Development and Discussion
III. Bugs & FAQ
"should be fixed"
Re: [Request] Add flag or property to entities to render as tile
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.
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
Im pretty late, but in 0.17 this can sorta be done with LuaRendering and the draw_on_ground flag.