[Probably unsolvable]Render an entity in the background
[Probably unsolvable]Render an entity in the background
I created a new entity which you can walk on, but when the player is standing on the upper half, the entity is rendered in front of the player. I want it to always be rendered behind the player, like belts do. How can i do that?
Last edited by Villfuk02 on Tue May 01, 2018 2:01 pm, edited 1 time in total.
Re: Render an entity in the background
Use and entity that can have the render layer set (trivial-smoke, smoke-with-trigger, car, simple-entity, simple-entity-with-owner, simple-entity-with-force, corpse, electric-energy-interface), and set the render layer: https://wiki.factorio.com/Types/RenderLayer
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.
Re: Render an entity in the background
So I guess for assembling-machine it is not possible. Is there any workaround?
- eradicator
- Smart Inserter
- Posts: 5211
- Joined: Tue Jul 12, 2016 9:03 am
- Contact:
Re: Render an entity in the background
Invisible assembling machine with graphic-only entity on top that does support layer?Villfuk02 wrote:So I guess for assembling-machine it is not possible. Is there any workaround?
Re: [Probably unsolvable]Render an entity in the background
Make big sprites with alpha gap and shift this picture higher/ lower.
- eradicator
- Smart Inserter
- Posts: 5211
- Joined: Tue Jul 12, 2016 9:03 am
- Contact:
Re: [Probably unsolvable]Render an entity in the background
Interesting hack. Waste precious video memory though, so should be used carefully.darkfrei wrote:Make big sprites with alpha gap and shift this picture higher/ lower.
Re: [Probably unsolvable]Render an entity in the background
I tried making the picture double the height with the upper half transparent and then shifting it back by 2 tiles.Make big sprites with alpha gap and shift this picture higher/ lower.
(it is a part of animation)
Code: Select all
width = 128,
height = 256,
frame_count = 1,
line_length = 1,
shift = {0.0, -2.0},