SpriteShadowOffset

Top  Previous  Next

Syntax

SpriteShadowOffset(sprite as POINTER,x as INT,y as INT)

Description

Specifies the offset position to draw a sprites shadow with the drawing mode @TRANSSHADOW.

Parameters

sprite - Sprite pointer returned by LoadSprite.

x, y - The offsets to position the shadow.

Return value

None

Remarks

Offsets are in negative directions. The transparency of the shadow is determined by the SpriteAlpha function. Note that with the @TRANSSHADOW drawing mode that only the shadow is drawn. You must switch modes to draw the actual sprite image.

See Also: SpriteAlpha, LoadSprite

Example usage

SpriteAlpha sprite2,180
SpriteShadowOffset sprite2,-20,-20
...
SpriteDrawMode sprite2,@TRANSSHADOW
DrawSpriteXY sprite2,x2,y2
SpriteDrawMode sprite2,@TRANS
DrawSpriteXY sprite2,x2,y2