Table of Contents

Follow the Mouse – Python

Example Description
The example demonstrates how to make the sprite follow the mouse in Python.

Code

sprite = Sprite('Tobi')

while True:
  sprite.pointto()
  sprite.move(3)

Output