HandleImage3D sprite,xoffset#,yoffset#

Parameters

sprite - handle of existing sprite
xoffset# - horizontal offset of handle
yoffset# - vertical offset of handle

Description

Sets the handle (axis) of the sprite entity.
Some examples of XOffset/YOffset values:

X Offset Y Offset Handle Position
-1 -1 Top Left
0 0 Centre
+1 +1 Bottom Right

*NOTE: Any copies of the sprite are also affected by this command.

See Also: MidHandle3D , ImageXHandle() , ImageYHandle()

Thanks go to FredBorg for this command.

Example

Include "Sprite Control.bb"

SpriteGraphics3D 640,480

mysprite=LoadImage3D("myimage.bmp")
HandleImage3D mysprite,0.3,-1

RenderWorld
Flip
WaitKey
End


Index