Page 1 of 1
How do sprite shifts work
Posted: Fri Jul 03, 2015 1:52 pm
by GotLag
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
Posted: Wed Jul 15, 2015 3:30 am
by GotLag
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
Posted: Sat Jul 18, 2015 12:47 pm
by YuokiTani
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
Re: How do sprite shifts work
Posted: Sat Jul 18, 2015 4:57 pm
by GotLag
Thanks but I already whipped up an Excel spreadsheet to do it for me.