Page 1 of 1

Entity images in SpritePath

Posted: Thu Mar 14, 2019 2:54 pm
by darkfrei
Hi!
https://lua-api.factorio.com/latest/Con ... SpritePath
SpritePath
It is specified by string. It can be either the name of the sprite prototype defined in the data or path in form "type/name". Supported types are.

"item" - for example "item/iron-plate" is the icon sprite of iron plate
"entity" - for example "entity/small-biter" is the icon sprite of the small biter
Why here is possible to use icon of item, icon of entity, but not image of entity? Can you please add it too?

Re: Entity images in SpritePath

Posted: Thu Mar 14, 2019 8:58 pm
by Rseding91
Almost every entity does rendering different than the next and as such it's not possible to just "use the image for an entity".

Re: Entity images in SpritePath

Posted: Fri Mar 15, 2019 5:47 am
by darkfrei
Rseding91 wrote: Thu Mar 14, 2019 8:58 pm Almost every entity does rendering different than the next and as such it's not possible to just "use the image for an entity".
How it was done by ghosts? They have sprites of all entities.

Re: Entity images in SpritePath

Posted: Fri Mar 15, 2019 10:49 am
by Rseding91
darkfrei wrote: Fri Mar 15, 2019 5:47 am
Rseding91 wrote: Thu Mar 14, 2019 8:58 pm Almost every entity does rendering different than the next and as such it's not possible to just "use the image for an entity".
How it was done by ghosts? They have sprites of all entities.
The actual entity exists and is owned by the ghost.