Controlling Sprites with Python
In PictoBlox Python mode, every sprite is an object with a set of built-in functions you can call in your code. These functions let you move, rotate, resize, show, hide, and animate your sprites — all through Python!

Motion Functions
Sprite Motion Functions

Appearance Functions
Sprite Appearance Functions

Timing Functions
To create smooth animations and delays between actions, Python provides the time module with a sleep() function.
import time tobi.move(10) time.sleep(0.5) # Wait 0.5 seconds tobi.move(10)
Always import the time module at the top of your script before using time.sleep(). Forgetting to import it will cause an error!

.webp&w=3840&q=75)
.webp&w=3840&q=75)
.webp&w=3840&q=75)
.webp&w=3840&q=75)
.webp&w=3840&q=75)