Sprite:setAnchorPosition

From GiderosMobile
Revision as of 10:03, 23 August 2018 by Hgy29 (talk | contribs) (Created page with "__NOTOC__ '''Available since:''' Gideros 2015.03.22<br/> === Description === Sets x, y, z anchor position of `Sprite` in it's relative coordinates. Meaning Sprite with dimens...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Available since: Gideros 2015.03.22

Description

Sets x, y, z anchor position of `Sprite` in it's relative coordinates.

Meaning Sprite with dimensions 100x100 and anchor position of 50x50 would rotate around its center

= Sprite:setAnchorPosition(anchorXanchorYanchorZ,)

'anchorX: (number) Anchor position in Sprite's internal coordinates '
'anchorY: (number) Anchor position in Sprite's internal coordinates '
anchorZ: (number) Anchor position in Sprite's internal coordinates optional