In Lesson 1, we created a sprite and also create four costumes: â€œfrontâ€, â€œbackâ€, â€œfacing leftâ€, and â€œfacing rightâ€.
In this lesson, we will make our sprite dance, and dance to the beat.
Step 1: Dance
Open the â€œdanceâ€ project that we created in Lesson 1. Click â€œSprite1â€ and change its name to â€œdancer1â€.
Click â€œScriptsâ€ tab. Sprite â€œdancer1â€ doesnâ€™t have any script blocks. Click â€œControlâ€.
Then drag out â€œforeverâ€ script block and drop it in the script editor.
Click â€œLooksâ€. Drag out â€œnext costumeâ€ block and drop it inside â€œforeverâ€ block to form a combo block.
Now double click this combo block to see dancer1 spin like crazy!
We need to slow him down! To do so, click â€œControlâ€ again. Drag â€œwait 1 secsâ€ and drop it under â€œnext costumeâ€. Now double click the combo block again.
Step 2: Finishing and Testing
We are almost done with creating our first animation. To wrap it up, drag â€œwhen Â clickedâ€ and drop it above â€œforeverâ€ block. Now click the Â button to start the animation.
We are done with the first animation. Try viewing in full-screen mode or â€œpresentation modeâ€ by clicking.
Step 3: Kick Up a Notch
You can add more costumes or make dancer1 dance faster. I added two extra costumes: â€œfront2â€ and â€œback2â€. I also change â€œwait 1 secsâ€ to â€œwait 0.5 secsâ€ to make dancer1 dance faster.