loodakrawa / SpriterDotNet

A pure C# Spriter implementation
zlib License
220 stars 75 forks source link

Sprite Object pixel coordinate snapping in pixel mode #107

Open TravisGesslein opened 5 years ago

TravisGesslein commented 5 years ago

When animations in Spriter are created with pixel mode enabled, a pixel_mode=1 is added to the xml/json output as a flag in the spriter_data tag and (just like in the editor), all coordinates of sprite objects should be snapped to the closest pixel, which I think is not the case at the moment (I often get sprite object positions with some fractional parts).

loodakrawa commented 5 years ago

Thanks for reporting!