Sprite |
public void SetCoordinateCenter( PositionTypes centerPosition )
SetCoordinateCenter can set a custom position of a coordinate center.
By default the center position is set to TopLeft, but with this method you can set it to any corner or center of the screen.
This can also change the direction of the horizontal and vertical axis.
When center position is horizontally set to Left or Center, then horizontal axis is pointing to the right. When Right is used, then horizontal axis is pointing to the left (to define the distance from the right border).
When center position is vertically set to Top, then vertical axis is pointing down (distance from the top). When Center or Bottom is used, then vertical axis is pointing Up (distance from the bottom or center).