**TransformSprite()**

**Syntax**

TransformSprite(#Sprite, x1, y1, [z1], x2, y2, [z2], x3, y3, [z3], x4, y4, [z4])

Transforms the sprite to the new given coordinates. This is typically used to perform real-time transformations. Warning, as a sprite is a combination of 2 triangles, the transformation could looks strange. If one of the optional 'z' parameter is specified, all need to be specified.

**Parameters**

x1, y1First point coordinate, in pixel x2, y2Second point coordinate, in pixel x3, y3Third point coordinate, in pixel x4, y4Fourth point coordinate, in pixel z1, z2, z3, z4The 'z' value, which specify the depth of the points.

**Return value**

None.; ; x1 x2 ; --------- ; | /| ; | / | ; | / | ; |/ | ; --------- ; x4 x3 ;

**Supported OS **

All