Table of Contents

Mouse Tracker – Python

Example Description
The example demonstrates how to implement mouse tracking in Python.

Code

sprite = Sprite('Tobi')

while True:
  if (sprite.iskeypressed("space")):
    sprite.goto("_mouse_")

Output