SunFounder ESP32 Starter Kit
3. Scripting for the Paddle sprite
Now write the script for the Paddle sprite, which needs to appear randomly on the stage.
• Hide the sprite Paddle when the green flag is clicked, and clone itself at the same time. The [create clone of]
block is a control block and a stack block. It creates a clone of the sprite in the argument. It can also clone the
sprite it is running in, creating clones of clones, recursively.
• When Paddle is presented as a clone, its position is 220 (rightmost) for the x-coordinate and its y-coordinate at
(-125 to 125) random (height random).
4.18. 2.15 GAME - Flappy Parrot 597