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

Post Reply
User avatar
Arch666Angel
Smart Inserter
Smart Inserter
Posts: 1636
Joined: Sun Oct 18, 2015 11:52 am
Contact:

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

Post 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

Rseding91
Factorio Staff
Factorio Staff
Posts: 13171
Joined: Wed Jun 11, 2014 5:23 am
Contact:

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

Post 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.
If you want to get ahold of me I'm almost always on Discord.

User avatar
Arch666Angel
Smart Inserter
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

Post 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.

BenSeidel
Filter Inserter
Filter Inserter
Posts: 584
Joined: Tue Jun 28, 2016 1:44 am
Contact:

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

Post 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.

Boodals
Fast Inserter
Fast Inserter
Posts: 129
Joined: Sun Feb 11, 2018 7:10 pm
Contact:

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

Post by Boodals »

Im pretty late, but in 0.17 this can sorta be done with LuaRendering and the draw_on_ground flag.

Post Reply

Return to “Implemented mod requests”