draw_surface_part_ext(id,left,top,w,h,x,y,xscale,yscale,color,alpha)

id = name of the variable which holds the ID of the surface (see surface_create).

left = This is the position on the x axis that the surface will start to be drawn in. So everything that is located before left (has an x value less than left) will not be drawn.

top = this is the position on the y axis that the surface will stat to be drawn in. So everything tat is located before top (has a y value less tan top) will not be drawn.

w = Width of surface to be drawn.

h = Height of surface to be drawn.

x = Left position of surface to be drawn.

y = Top position of surface to be drawn.

xscale = Horizontal scaling of surface.

yscale = Vertical scaling of surface.

color = Colour blending color.

alpha = Transparency of surface.

 

Example

draw_surface_part_ext(surface,64,128,20,40,32,16,.5,.75,c_white,.7);

 

This function draws a part of the surface with the given ID on the screen in the position x,y. The part of the surface drawn starts from the point left,top and has the width value of width and height value of height. Its width is scaled to xscale (where 1=no change) and its height is called to yscale (where 1=no change), it is drawn with the blending color value of color and alpha transparency value of alpha (where 1=opaque).

 

surfaces_left_top

 

esh_corp11 - Revision #2