Description :
Returns the X coordinate of an object.
Uses :
Use this for getting the X coordinate of an object. The top-left corner is considered 0,0. X increases to the right.
Example :
This code compares the X Position of the object with the half of its width and changes the position when the X position is smaller.