draw_self

This draws the instance sprite the same as the default draw.

Syntax:

draw_self();


Returns: N/A


Description

This function draws the sprite assigned to the instance exactly as it would be drawn if the draw event held no code or actions, and will reflect and changes that have been made to the sprite variables in other events.

NOTE: If the instance has no sprite assigned to it, this function will throw an error!



Example:

draw_self();

This makes the instance draw itself with the properties defined by the in built sprite variables.


Back: Drawing Sprites And Backgrounds
Next: draw_sprite
© Copyright YoYo Games Ltd. 2018 All Rights Reserved