Draw Stacked Sprites Icon Draw Stacked Sprites

This action will draw a sprite a given number of sprites one after another at a given position within the room. You give the sprite to draw and the stack order, which can be either Row (horizontally, left to right), or column (vertically, top to bottom), as well as the number of sprites to draw and the position. The position can be an absolute position within the room, or one relative to the position of the instance doing the drawing, and the spacing between images will be based on the width or height of the sprite. Note that this simply draws a static image - the initial single image (frame 0) of the given sprite - and any further frames will be ignored, as will any transforms that have been added through changing the instance variables (like image_xscale or image_blend).

NOTE This action is only for use in the various Draw Events, and will not draw anything if used elsewhere.

 

Action Syntax:

Draw Stacked Sprites Action

Arguments:

ArgumentDescription
SpriteThe sprite to draw
Stack OrderThe order to draw in (either Row or Column)
NumberThe number of sprites to draw
xThe x position to draw at
yThe y position to draw at

 

Example:

Draw Stacked Sprites ExampleThe above action block code gets the number of instances of the object "obj_Player" and then uses this to draw a number of marker sprites to the screen.