YoYo Games Wiki

draw_surface(id,x,y)

From YoYoGames Wiki

Description

This function draws a surface with the given ID on the screen in the position x,y.

Arguments

  • id (real): name of the variable which holds the ID of the surface (see surface_create).
  • x (real): Horizontal position of surface.
  • y (real): Vertical position of surface.

Remarks

The draw_surface() function must be called in the Draw Event.

See Also

Content from GMKB, was used to expand this article. The content was contributed by Eyas Sharaiha.