No Revisions Have Been Made To This Page
Can you suggest an edit for this page? Click Here
GML Code Example
draw_surface(index, x, y);
|index||The index 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.
NOTE: When working with surfaces there is the possibility that they can cease to exist at any time due to them being stored in texture memory. You should ALWAYS check that a surface exists using surface_exists before referencing them directly. For further information see Surfaces.