Bilge Posted January 21, 2015 Share Posted January 21, 2015 What's the difference between pivot and anchor for a Sprite? Link to comment Share on other sites More sharing options...
alex_h Posted January 22, 2015 Share Posted January 22, 2015 anchor uses a normalised value (0 = left edge, 1 = right edge)pivot is measured in pixels / points.So to target horizontal middle using anchor use the followingsprite.anchor.x = 0.5; To do the same via pivot do the following:sprite.pivot.x = 0.5 * sprite.width; Link to comment Share on other sites More sharing options...
Bilge Posted January 22, 2015 Author Share Posted January 22, 2015 What should happen if you specify both a pivot and anchor? Are they meant to be mutually complimentary or exclusive? Link to comment Share on other sites More sharing options...
Recommended Posts