draw_self

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

语法:

draw_self();


返回: N/A(无返回值)


描述

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!



例如:

draw_self();

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


上一页: Drawing Sprites And Tiles
下一页: draw_sprite
© Copyright YoYo Games Ltd. 2018 All Rights Reserved