EasyManua.ls Logo

SunFounder ESP32

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
Loading...
SunFounder ESP32 Starter Kit
The effect to be achieved by the Star sprite is to appear at a random location, and if it hits Rocketship, the script stops
running and the game ends.
When the green flag is clicked and the sprite goes to a random location, the [turn degrees] block is to make the
Star sprite move forward with a bit of an angle change so you can see that it is moving in a curve and if on edge,
bounce.
If the sprite touches the Rocketship sprite while its moving, stop the script from running.
578 Chapter 4. Play with Scratch

Table of Contents