draw_surface_ext(id,x,y,xscale,yscale,rot,color,alpha)
From YoYoGames Wiki
Description
This function draws a surface with the given ID on the screen in the position x,y. with its width scaled to xscale (where 1=no change) and its height scaled to yscale (where 1=no change) and is rotated with rot degrees, with the color blending of color and transparency of alpha (where 1=opaque).
Arguments
- id (real): name of the variable which holds the ID of the surface (see surface_create).
- x (real): Left position of surface to be drawn.
- y (real): Top position of surface to be drawn.
- xscale (real): Horizontal scaling of surface.
- yscale (real): Vertical scaling of surface.
- rot (real): Rotated angle (in degrees) of surface.
- color (real): Colour blending color.
- alpha (real): Transparency of surface.
Remarks
The function must be called in the draw event.
See Also
- Surfaces - a complete Game Maker tutorial in surfaces.
Content from GMKB, was used to expand this article. The content was contributed by Eyas Sharaiha.

