draw_surface(id, x, y);
参数 描述 id The unique ID value of the surface to draw. x The x position of where to draw the surface. y The y position of where to draw the surface.
With this function you can draw a surface at a given position within the room, with the top left corner of the image being drawn at the specified x/y position.
var _vx = camera_get_view_x(view_camera);
var _vy = camera_get_view_y(view_camera);
draw_surface(surf, _vx, _vy);
The above code draws the surface indexed in "surf" at same position as camera view.