Skip to content
Filippo edited this page Feb 6, 2017 · 30 revisions

##spr id x y [colorkey [scale [flip:0..3 [rotate:0..3] ] ] ]

##Parameters:

  • id : index of the sprite
  • x : x coordinate where the sprite will be draw, starting from top left corner.
  • y : y coordinate where the sprite will be draw, starting from top left corner.
  • colorkey : index of the color in the sprite that will be used as transparent color. Use -1 if you want a opaque sprite.
  • scale : scale factor applied to sprite.
  • flip : flip the sprite vertically or horizontally or both.
  • rotate : rotate the sprite by 0, 90, 180 or 270 degrees.

##Description: It will put the sprite number index in the x and y coordinate.
You can specify a colorkey in the palette that will be used as transparent color.
The sprite can be scaled up by a desired factor or flipped and rotated

##Example

-- spr demo
Clone this wiki locally