TransformSprite()
Syntax
TransformSprite(#Sprite, x1, y1, [z1], x2, y2, [z2], x3, y3, [z3], x4, y4, [z4])Description
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, y1 First point coordinate, in pixel x2, y2 Second point coordinate, in pixel x3, y3 Third point coordinate, in pixel x4, y4 Fourth point coordinate, in pixel z1, z2, z3, z4 The 'z' value, which specify the depth of the points.
Return value
None.; ; x1 x2 ; --------- ; | /| ; | / | ; | / | ; |/ | ; --------- ; x4 x3 ;
Supported OS
All