How do sprite shifts work
How do sprite shifts work
What is the shift for a sprite/animation based on? At the moment I have to use trial and error to adjust the shift vector to correctly place the heater animations for my custom electric furnaces.
Re: How do sprite shifts work
Okay, experimenting shows shift is the number of tiles to move the sprite, independent of sprite scale. At a scale of 1, a tile is 32 pixels to a side.
Re: How do sprite shifts work
you can use the GFX-Shift-Tool if you want it a little bit easier.
for animations use a single-frame to find the correct shift's. all shifts applys center-based (tile and image) - gfx with shadows looks off-centered until you shift to the image-center (ignore the shadow)
a 1x1 tiled image = 32x32px needs a shift -0.5, -0.5 (= -16px) to center ingame
for animations use a single-frame to find the correct shift's. all shifts applys center-based (tile and image) - gfx with shadows looks off-centered until you shift to the image-center (ignore the shadow)
a 1x1 tiled image = 32x32px needs a shift -0.5, -0.5 (= -16px) to center ingame
Re: How do sprite shifts work
Thanks but I already whipped up an Excel spreadsheet to do it for me.