The function changes its sprite’s size by the specified amount. The default sprite size is 100; size values below that percentage are for shrunken sprites, and size values above it are for overlarge sprites.
The example demonstrates how to make the sprite track and stamp its image on the mouse when the space key is pressed in Python.
Code
sprite = Sprite('Tobi')
pen = Pen()
pen.clear()
while True:
if (sprite.iskeypressed("space")):
sprite.setx(sprite.mousex())
sprite.sety(sprite.mousey())
pen.stamp()