image_angle

Note: image_angle is restricted to registered users only.

 

Example

image_angle +=14;

 

image_angle will rotate your object clockwise (right) or counter-clockwise (left) (around the origin of the sprite) the number of pixels chosen after the equals sign. The above example will rotate the object 14 pixels counter-clockwise every time it is called while:

 

image_angle -=14;

 

will rotate it clockwise.  Placing these in the <Left> and <Right> keyboard events will rotate your object as though you were looking top-down.