Is it possible to generate sprites using script on game load and still use it in prototypes?
I'm pretty sure it's not possible, just tought of asking before completely rejecting this idea.
Dynamic sprite generation
Re: Dynamic sprite generation
You can layer sprites (which is what the base game does to generate the barrel icons) but that's about it.
If you want to get ahold of me I'm almost always on Discord.
Re: Dynamic sprite generation
So it could be possible to layer a lot of small sprites next to each other to create ilusion of one big sprite?
Is it possible to do he same with picture property of entity like this?
Is it possible to do he same with picture property of entity like this?
Code: Select all
picture = {
{filename, x, y, width, height, shift, ...},
{sprite two},
{sprite three},
{sprite four},
....
},
Re: Dynamic sprite generation
See car animation: layers for layers, stripes for multiple files spritesheet.
By turrets you can find same layers too.
Code: Select all
animation =
{
layers =
{
{
stripes =
{
{
filename = "__base__/graphics/entity/car/car-1.png",
width_in_frames = 2,
height_in_frames = 22,
},
{
filename = "__base__/graphics/entity/car/car-2.png",
width_in_frames = 2,
height_in_frames = 22,
},
Re: Dynamic sprite generation
Thank you, hopefully it will work with chests.darkfrei wrote:See car animation: layers for layers, stripes for multiple files spritesheet.
By turrets you can find same layers too.Code: Select all
animation = { layers = { { stripes = { { filename = "__base__/graphics/entity/car/car-1.png", width_in_frames = 2, height_in_frames = 22, }, { filename = "__base__/graphics/entity/car/car-2.png", width_in_frames = 2, height_in_frames = 22, },