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 #503 background imageLoading...
Page #503 background image
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

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