draw_sprite_tiled(sprite,subimg,x,y)
From YoYoGames Wiki
Description
This function tiles the sprite across the entire screen using the x and y as an offset. A ' -1 ' in the subimg means run the animation as normal.
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: This is the frame of the animation you want to draw.
- x: Sets the horizontal alignment of the whole grid of sprites.
- y: Sets the vertical alignment of the whole grid of sprites.
Remarks
Must be in Draw Event or used with Surfaces.
Content from GMKB, was used to expand this article. The content was contributed by Flashback.

