In this lesson 2, we make our sprite dance. In lesson 3, I will show you how to make him dance to the beat. And not just to the beat but to the Hip-Pop beat!
Step 1: Dancing and Popping
Open project â€œdanceâ€. Select sprite â€œdancer1â€ and click â€œSoundâ€ button.
Drag â€œplay sound popâ€ block and drop it under â€œnext costumeâ€ block. Now click Â to play.
Step 2: Hip-Popping
Fun, huh? But try listening to it for 5 minutes â€“ it gets a bit boring. One can only take this much â€œpoppingâ€. This calls for a twist to the music clip. Letâ€™s fancy it up! Go to Sounds Tab, and click â€œImportâ€ button. When â€œImport Soundâ€ window opens, click â€œSoundsâ€ button and then select â€œMusic Loopsâ€ folder.
Click each clip to listen to the demo. â€œDrumMachineâ€, â€œHipHopâ€, and â€œHumanBeatbox1â€ are among my favorites. So I think they are cool enough for our first loop. Import all three. Delete the less interesting â€œPopâ€. Now the Sounds editor for sprite â€œhip-popâ€ should now look like this.
Go back to Scripts Tab. First drag a â€œforeverâ€ block from Control Tool Box and drop it anywhere in the editing box. Then drag a â€œplay sound _____ until doneâ€ block and drop it inside the â€œforeverâ€ block. Drag two other â€œplay sound ______ until doneâ€ blocks and drop it under first â€œplay sound _____ doneâ€ block. Select sound for each block to your liking. Double click this combo block to test.
Step 3: Wrapping it up
Remove the â€œplay sound popâ€œ block from the motion combo block. Then add a â€œwhen Â clickedâ€ on top of the music combo block.