Hello,
A while ago I thought about how cool it would be, if trains using nuclear fuel would glow. Now I try to make a mod for this but I don't know if there is a way to change the sprite of an entity depending on their inventory. Alternativly, is there any way to add the glow via the coloring of the train? What do you guys think is the best way to accomplish this?
Thanks in advance,
Phil
Changing sprite of a train dynamically
- Philuminati
- Inserter
- Posts: 35
- Joined: Sun Aug 05, 2018 1:04 am
- Contact:
Re: Changing sprite of a train dynamically
Both https://lua-api.factorio.com/latest/LuaRendering.htmlPhiluminati wrote: ↑Wed Jul 29, 2020 5:36 pmHello,
A while ago I thought about how cool it would be, if trains using nuclear fuel would glow. Now I try to make a mod for this but I don't know if there is a way to change the sprite of an entity depending on their inventory. Alternativly, is there any way to add the glow via the coloring of the train? What do you guys think is the best way to accomplish this?
Thanks in advance,
Phil
Re: Changing sprite of a train dynamically
Look at the centrifuge prototype as an example for glowing entities. See if you can use that on trains too. That would really be the best.
Note: Mods add different nuclear fuel (e.g. pollonium) that glow at different colors. It's nice to see the centrifuge glow differently depening on which recipe is being used. Would be nice if the train glowed according to fuel used too.
Note: Mods add different nuclear fuel (e.g. pollonium) that glow at different colors. It's nice to see the centrifuge glow differently depening on which recipe is being used. Would be nice if the train glowed according to fuel used too.