# Block Command Guide ## Introduction ### Trigger Blocks ![](img/01Block.png) | No. | Name | Description | | | :---: | :---: | :---: | --- | | ① | Start When Green Flag is Clicked | ![](img/02Block.png) | Place this block at the beginning of the program. When the green flag is clicked, the following program will execute. | | ② | Start When Character is Clicked | ![](img/03Block.png) | Place this block at the beginning of the program. When the character is clicked, the following program will execute. | | ③ | Start When Colliding with Another Character | ![](img/04Block.png) | Place this block at the beginning of the program. When the character collides with another character, the following program will execute. | | ④ | Start When Message is Received | ![](img/05Block.png) | Executes the following program when a message of a specified color is received. | | ⑤ | Send Message | ![](img/06Block.png) | Sends a message of a specified color. | | ⑥ | Start When Tilt Sensor Changes | ![](img/07Block.png) | Place this block at the beginning of the program. When the tilt sensor detects a change, the following program will execute. | | ⑦ | Start When Distance Sensor Changes | ![](img/08Block.png) | Place this block at the beginning of the program. When the distance sensor detects a state change, the following program will execute. | | ⑧ | Start When Button is Pressed | ![](img/09Block.png) | Place this block at the beginning of the program. When the button is pressed, the following program will execute. | ### Action Blocks ![](img/10Block.png) | No. | Name | Description | | | :---: | :---: | :---: | --- | | ① | Move Right | ![](img/11Block.png) | Moves the character to the right. The number of steps can be specified. | | ② | Move Left | ![](img/12Block.png) | Moves the character to the left. The number of steps can be specified. | | ③ | Move Up | ![](img/13Block.png) | Moves the character upwards. The number of steps can be specified. | | ④ | Move Down | ![](img/14Block.png) | Moves the character downwards. The number of steps can be specified. | | ⑤ | Turn Right | ![](img/15Block.png) | Rotates the character clockwise by a specified number of units (1-12, like a clock's hour hand; 12 represents a full circle). | | ⑥ | Turn Left | ![](img/16Block.png) | Rotates the character counterclockwise by a specified number of units (1-12, like a clock's hour hand; 12 represents a full circle). | | ⑦ | Jump | ![](img/17Block.png) | Makes the character jump. The height of the jump can be specified. | | ⑧ | Go Home | ![](img/18Block.png) | After moving, this block returns the character to its original position. (Drag the character to set its initial position.) | ### Appearance Blocks ![](img/19Block.png) | No. | Name | Description | | | :---: | :---: | :---: | --- | | ① | Speak | ![](img/20Block.png) | Displays a speech bubble above the character with specified content. | | ② | Enlarge | ![](img/21Block.png) | Increases the character's size, making it appear larger. | | ③ | Shrink | ![](img/22Block.png) | Decreases the character's size, making it appear smaller. | | ④ | Reset Size | ![](img/23Block.png) | Resets the character's size to its original dimensions. | | ⑤ | Hide | ![](img/24Block.png) | Gradually makes the character disappear from the screen. | | ⑥ | Show | ![](img/25Block.png) | Gradually makes a hidden character reappear on the screen. | | ⑦ | LED Light | ![](img/26Block.png) | Changes the color of the LED light on the main controller. | ### Sound Effect Blocks ![](img/27Block.png) | No. | Name | Description | | | :---: | :---: | --- | --- | | ① | Start When Voice Recognition Module Recognizes | ![](img/28Block.png) | Place this block at the beginning of the program. When the voice recognition module detects a command, the following program will execute. | | ② | Dog | ![](img/29Block.png) | Plays animal sounds. | | ③ | Car | ![](img/30Block.png) | Plays car horn sounds. | | ④ | Notification | ![](img/31Block.png) | Plays a notification sound. | | ⑤ | Pop | ![](img/32Block.png) | Plays a pop sound effect. | ### Control Blocks ![](img/33Block.png) | No. | Name | Description | | | :---: | :---: | :---: | --- | | ① | Pause | ![](img/34Block.png) | Pauses the character for a specified duration (unit: 1/10 second). | | ② | Stop | ![](img/35Block.png) | Stops all programs running on the character. | | ③ | Set Speed | ![](img/36Block.png) | Changes the movement speed of the character. | | ④ | Loop | ![](img/37Block.png) | Repeats all programs within the block for a specified number of times. | ### Motor Blocks ![](img/38Block.png) | No. | Name | Description | | | :---: | :---: | :---: | --- | | ① | Set Click Speed | ![](img/39Block.svg) | Adjusts the speed of the clicking motion (range: 0-9). | | ② | Motor Port 1 | ![](img/40Block.svg) | Controls the motor connected to Port 1. | | ③ | Motor Port 2 | ![](img/41Block.svg) | Controls the motor connected to Port 2. | | ④ | Move Forward | ![](img/42Block.svg) | Controls the robot to move forward when two motors are connected. | | ⑤ | Move Backward | ![](img/43Block.svg) | Controls the robot to move backward when two motors are connected. | | ⑥ | Turn Left | ![](img/44Block.svg) | Controls the robot to turn left when two motors are connected. | | ⑦ | Turn Right | ![](img/45Block.svg) | Controls the robot to turn right when two motors are connected. | | ⑧ | Stop | ![](img/46Block.svg) | Stops the robot when two motors are connected. | ### Ending Blocks ![](img/47Block.png) | No. | Name | Description | | | :---: | :---: | :---: | --- | | ① | End | ![](img/48Block.png) | Indicates the end of the program (does not affect execution). | | ② | Infinite Loop | ![](img/49Block.png) | Continuously repeats all programs within the block. | | ③ | Switch to Page | ![](img/50Block.png) | Switches to a specified page in the project. |