draw_sprite_pos - hpgDesigns/hpgdesigns-dev.io GitHub Wiki
Draws the sprite stretched over the plane comprised of the four given coordinates.
Parameter | Description |
---|---|
sprite | the sprite to get the sub image from |
subimg | the sub image of the sprite to draw |
x1 | x coordinate of the top left corner of the sprite plane |
y1 | y coordinate |
x2 | x coordinate of the top right corner of the sprite plane |
y2 | y coordinate |
x3 | x coordinate of the bottom right corner of the sprite plane |
y3 | y coordinate |
x4 | x coordinate of the bottom left corner of the sprite plane |
y4 | y coordinate |
alpha | the transparency of the sprite, between 0 and 1 |
void: This function does not return anything.
// demonstrates drawing an objects sprite on a plane
draw_sprite_pos(sprite_index, image_index, x,y, x+5,y, x+5,y+5, x,y+5, 1);
NOTOC