defold icon indicating copy to clipboard operation
defold copied to clipboard

Define custom anchor points within an atlas for sprite pairs

Open subsoap opened this issue 4 years ago • 1 comments

Like with tilemaps, could have some extra data for atlases. One could be custom anchor points for pivoting. This would allow artists to set one or more anchor point of an image directly in an atlas and either have the option of having the anchor point be the default pivot, or as an option in the dropdown or at least able to be set in code.

A use for this is having a large gallery of creatures where you want to swap between them. Without this, you have to either save in code position offsets, or setup premade nodes with the right positions set.

subsoap avatar Sep 07 '20 04:09 subsoap

Also sprite pivots need for frame animations for sprites with different sizes

zendorx avatar Feb 12 '24 14:02 zendorx

closed as duplicate of https://github.com/defold/defold/issues/3666

AGulev avatar May 03 '24 21:05 AGulev