Sprite:setAnchorPoint

From GiderosMobile
Revision as of 15:31, 13 July 2023 by Hgy29 (talk | contribs) (Text replacement - "<source" to "<syntaxhighlight")

Available since: Gideros 2016.10
Class: Sprite

Description

Sets x, y, z anchor position of Sprite in its relative coordinates. <syntaxhighlight lang="lua"> Sprite:setAnchorPoint(anchorX,anchorY,anchorZ) </source>

Parameters

anchorX: (number) anchor position in Sprite internal coordinates
anchorY: (number) anchor position in Sprite internal coordinates
anchorZ: (number) anchor position in Sprite internal coordinates optional