Page 1 of 1

draw_as_light and draw_as_sprite properties for sprite/animation types

Posted: Fri Aug 14, 2020 10:50 pm
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,
    }
}

Re: draw_as_light and draw_as_sprite properties for sprite/animation types

Posted: Mon Nov 16, 2020 1:20 pm
by Bilka
See 90019