YoYo Games Wiki

draw_sprite(sprite,subimg,x,y)

From YoYoGames Wiki

Description

This function draws a sprite of a given id and a certain image index on the position x,y.

Arguments

  • sprite (real): the name of the sprite you want to draw. This is the name you gave it when you created the sprite resource.
  • subimg (real): This is the frame of the animation you want to draw.
  • x (real): This is the horizontal position of the sprite, in pixels.
  • y (real): This is the vertical position of the sprite, in pixels.

Remarks

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