Stage—Costumes

A costume is the appearance of a sprite. A sprite needs at least one initial costume, and we can make the sprite move by adding multiple costumes for it.
Now, let's make the house we have drawn smile by adding a costume for it.
1589419373844-d7882520-6c98-4baf-8f2d-25289d4f23e4.gif

1. Click Add Costume in the lower left corner or right-click the costume icon in the upper left corner and choose duplicate.

1596187954996-e49c3951-1cf5-43a3-a102-2cdd6bdfe899.png

2. Draw the second costume and name it smile.

1596188062019-6d1705d0-24a4-4981-b79e-75ef1f3c7690.png

3. Click × to return to the editing page.

1596188142958-b42c9651-9618-4c58-b288-3951c1bf4185.png

Now that the costumes are added, let's start to program the sprite!

4. Drag the Events block when ( ) key pressed to the Scripts area.

1596188325950-fc99c30c-0622-4826-8fe7-786ac36a71bf.png

5. Drag the Motion block change y by ( ) to the Scripts area.

1596188412976-ed287f43-4cb0-4d0e-a333-89f7c31ef590.png

6. Drag the Looks block next costume to the Scripts area.

1596188464393-8e7a254d-2b28-4f71-87c0-920469cdf969.png

7. Drag the Control block wait ( ) seconds to the Scripts area and set the time to 0.3 seconds.

1596188660297-e049c08e-d832-4ac6-958d-4454ca39e449.png

8. Drag the Motion block change y by ( ) to the Scripts area and set the value to -10.

1596189054025-3c6a3202-b087-451c-8490-407aa59d21d5.png

9. Drag the Looks block next costume to the Scripts area.

1596189149752-b7cf842f-aec7-466c-8b8a-6efb75cb13a0.png

10. Press the space key and see what happens.

1589419374148-ae1d1da3-122a-476a-8f81-1400c535af5f.gif

Was this article helpful?
3 out of 3 found this helpful

Comments

0 comments

Please sign in to leave a comment.