EasyManuals Logo

SunFounder ESP32 User Manual

Default Icon
771 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #603 background imageLoading...
Page #603 background image
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

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the SunFounder ESP32 and is the answer not in the manual?

SunFounder ESP32 Specifications

General IconGeneral
BrandSunFounder
ModelESP32
CategoryController
LanguageEnglish