draw_as_light and draw_as_sprite properties for sprite/animation types

Post Reply
User avatar
kirazy
Filter Inserter
Filter Inserter
Posts: 416
Joined: Tue Mar 06, 2018 12:18 am
Contact:

draw_as_light and draw_as_sprite properties for sprite/animation types

Post by kirazy »

We have draw_as_shadow in the sprite definition, but draw_as_light and draw_as_sprite are restricted to some special cases in working_visualisations.

Is it possible to extend this behavior to your standard sprite/animation types?

e.g.:

Code: Select all

{
    filename = "__arachnophobia__/graphics/spidertron-legs-lower-tip-light.png",
    width = 18,
    height = 56,
    shift = util.by_pixel(0, -21),
    draw_as_sprite = false,
    draw_as_light = true,
    hr_version = {
        filename = "__arachnophobia__/graphics/hr-spidertron-legs-lower-tip-light.png",
        width = 34,
        height = 112,
        shift = util.by_pixel(0, -21),
        draw_as_sprite = false,
        draw_as_light = true,
    }
}

Bilka
Factorio Staff
Factorio Staff
Posts: 3165
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: draw_as_light and draw_as_sprite properties for sprite/animation types

Post by Bilka »

See 90019
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.

Post Reply

Return to “Implemented mod requests”