TransformSprite()

语法

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.

参数

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.

返回值

无.

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

已支持操作系统

所有

<- SpriteWidth() - Sprite Index - TransparentSpriteColor() ->