Gets the current [X / Y] position of the actor.
[ACTOR].getX()
[ACTOR].getY()
[ACTOR].getXCenter()
[ACTOR].getYCenter()
[ACTOR].getScreenX()
[ACTOR].getScreenY()
Sets the [X, Y] position of the actor.
[ACTOR].setX([NUMBER]);
[ACTOR].setY([NUMBER]);
[ACTOR].setXCenter([NUMBER]);
[ACTOR].setYCenter([NUMBER]);
[ACTOR].setScreenX([NUMBER]);
[ACTOR].setScreenY([NUMBER]);
Returns true
if the specified actor is at least partially on screen.
[ACTOR].isOnScreen()
Returns the actor's direction (angle), in degrees. 0 degrees -> facing right. 90 degrees -> facing down.
(Utils.DEG * [ACTOR].getAngle())
Sets the actor's direction (angle), in degrees. 0 degrees -> facing right. 90 degrees -> facing down.
[ACTOR].setAngle(Utils.RAD * [NUMBER]);
Instantly rotates the the actor clockwise by the given number of degrees.
[ACTOR].rotate(Utils.RAD * [NUMBER]);
Instantly rotates the the actor counter-clockwise by the given number of degrees.
[ACTOR].rotate(-Utils.RAD * [NUMBER]);