SunFounder ESP32 Starter Kit
4. Move the sprite
Use the [move steps] block to move the sprite, run the script and you will see the sprite move from the middle to the
right.
5. Changing the sprite’s direction
Now change the direction of the sprite’s movement by the value of pin35. Since the value of pin35 ranges from 0-4095,
but the sprite’s rotation direction is -180~180, a [map] block needs to be used.
Also add [when green flag clicked] at the beginning to start the script.
• [point in direction]: Set the steering angle of the sprite, from Motion palette.
• [map from to]: Map a range to another range.
4.7. 2.4 Moving Mouse 497