draw_sprite_part(sprite,subimg,left,top,width,height,x,y)
From YoYoGames Wiki
- This article requires cleanup to meet the YoYo Games Wiki Quality Standards. The following specific problems need to be addressed:
- argument descriptions are not breif
- no explanation section exists.
Description
Draws part of a given sprite's subimage on a particular position in the room.
Arguments
- sprite (real): The sprite that is to be drawn. sprite_index can be used to show the current sprite.
- subimg (real): The subimage of the sprite to be drawn. -1 is the current subimage and can be used with animation.
- left (real): The x coordinate to start drawing the sprite. Anything to the left of this coordinate will not be drawn. If left exceeds sprite_width, then nothing will be drawn.
- top (real): The y coordinate to start drawing the sprite. Anything to the top of this coordinate will not be drawn.
- width (real): The number of pixels that should be drawn from the right of left. If 0, nothing will be drawn.
- height (real): The number of pixels that should be drawn below top. If 0, nothing will be drawn.
- x (real) (real): The x coordinate of the room at which your selected portion of the sprite will be drawn.
y: The y coordinate of the room at which your selected portion of the sprite will be drawn.

