How Can We Help?

Emotion Blocks

Emotion Blocks

Emotion blocks make your Codey Rocky more human-like. It can smile, get naughty, or even turn to you for care. Isn’t it marvelous?

Add Emotion Blocks

1. Make sure “Codey” is selected and click “+” in the blocks area.

2. From the pop-up Extension Center page, click “+” to add emotion blocks.

image

3. Go back to Edit page. You can find emotion category added to the block palette.

image

Have Some Fun

Let’s try out the emotion blocks. We’ll make a fun game. Codey Rocky bumps into a cave full of gold coins and starts collecting them.

Before coding, you need to hang up the chocolate coins, and the toy pan.

emotion-blocks.mp4

> Video by Jimmy Qin

1. Drag a when Codey starts up block from the Events category to the scripts area. Add an Action block move forward at power ()% for () secs, with 100% power for 0.5 second.

image

image

2. Add four Emotion blocks: look around, wow, look left, and look right.

image

3. Add another Action block move forward at power ()% for () secs, with 100% power for 0.5 second.

image

4. Add a Control block repeat (), and input number 4. Then add an Emotion block yes and an action block move forward at power ()% for () secs, with 100% power for 0.2 second.

image

image

image

5. Drag two more Emotion blocks: proud and smile.

image

6. Add another Action block move forward at power ()% for () secs, with 100% power for 0.6 second.

image

7. Last, add three more Emotion blocks: startle, dizzy, and hurt.

image

8. Click “Upload” to upload the program to Codey.

9. Check how Codey Rocky collect gold coins!