draw_surface_tiled_ext


语法:

draw_surface_tiled_ext(id, x, y, xscale, yscale, col, alpha);

参数 描述
id The unique ID value of the surface to draw.
x The x coordinate of where to draw the surface.
y The y coordinate of where to draw the surface.
x轴缩放 The horizontal scaling of the surface.
y轴缩放 The vertical scaling of the surface.
h The height of the area the stretched surface will occupy.
col The colour with which to blend the surface.
alpha The alpha of the surface.


Returns:

N/A(无返回值)


描述

This function will take a surface and then repeatedly tile it across the whole room, starting from the coordinates that you give in the function and with each tile scaled, colour blended and with the alpha that you define (these properties are the same as those used in draw_surface_ext).

注:由于储存在显存里,表面层运行时存在随时停止并退出的可能性。在直接引用它们之前,你需要 一直使用 surface_exists检测表面层是否退出。更多信息请查阅 表面层


例如:

draw_surface_tiled_ext(surf, x, y, 2, 2, c_red, 0.5);

This will draw the surface indexed in "surf" at the instances own x and y position, double its stored size and tiled in every direction in the room, as well as blended with the colour red and partially transparent.