draw_self

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

Syntax:

GML Code Example

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:

GML Code Example

draw_self();

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





No Examples Submitted

Does this page need better examples? Be the first to Submit

No Edits Suggested

Is this page unclear or not descriptive enough? Suggest an edit to the page and with enough upvotes your changes will be made.

No Questions Have Been Ask

Do you have a question about this page? Ask it Here