GM: draw sprite tiled
From GMpedia.org Wiki
- The correct title of this article is draw_sprite_tiled(sprite,subimg,x,y). It appears incorrectly here because of technical restrictions.
- The correct title of this article is draw_sprite_tiled(). It appears incorrectly here because of technical restrictions.
Arguments
sprite = 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.
Limitations
must be in Draw Event or used with Surfaces.
Note: Please remove limitations and port them in the "Remarks" section at the end of the article.
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.
This article was originally found at the Game Maker Knowledge Base, contributed by Flashback.
See the talk page for details
See the talk page for details

