ResizeSprite

Last Modified: 1/16/2021

Changes the size of an existing sprite.

Arguments

NameTypeRequiredDescription
Sprite Variable Yes The variable that you used with the AddSprite() function.
Width Integer Yes The new width of the Sprite.
Height Integer Yes The new height of the Sprite.

Example

Syntax: ResizeSprite <Sprite>, <Width>, <Height>
   a = AddSprite(4,4)
   PropSprite a,1,0
   
   MoveSprite a,200,200
   
   Sleep 60
   
   ResizeSprite a,3,2

Remarks

This routine was created by Mairtrus. The original source can be found here.

See Also

FreeAllSprite, FreeSprite, HideSprite, LinkSprite, MoveSprite, PropSprite, ShiftSprite, AddSprite(), SpritePosX(), SpritePosY()