draw_sprite_tiled(sprite,subimg,x,y)

Note: This function must be placed in the Draw Event for it to work correctly.

 

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.

 

Example

draw_sprite_tiled(spr_block,-1,0,0);

 

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.

 

Flashback - Revision #1