Introduction: Dancing Pi
Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.
Step 1: Scratch
First you must go onto scratch.mit.edu. Then if you have an account, log in. If not, sign up.
Step 2: Create
Once you are signed in, you will see at the top right corner is the create button. Tap on this to create a new project.
Step 3: Draw Your Characters
You will now go to the drawing area and paint a new Sprite that has he number 3. You will repeat this for the next 10 digits.
Step 4: Code
You will now click in the script for the 3. You will right the following code- when flag clicked, go to x:0,y:0. The. Repeat 10. Inside this you will put show, then wait 0.1 sec and then put hide.
Step 5: More Code
Next you will click on the dot Sprite and right the following code-
When flag clicked, hide, wait two seconds , repeat 10. Inside he repeat you will write show, wait 0.1 sec, hide. Then you will copy this code into all the others sprites except for the 3 that you already did.
Step 6: Even More Code
Next you will go into each Sprite after the dot and change the wait right above the repeat by 2 seconds. Hen you will have it wait 2 sec, 4 sec, 6 sec, and so on.
Step 7: Backdrop
Go into backdrops and click paint a new backdrop. Then use the fill to choose whatever color you want. Hen pick a different color and click on the paintbrush. Paint the words those are and then a bunch of dots after it.
Step 8: More Backdrops
Now do another one just like it except with it saying he first 11 digits of. Hen make a new backdrop with the same background color. Then write pi on it.
Step 9: Code for Backdrops
Go to scroll for the backdrops. Wrote when flag clicked switch backdrop to backdrop 1. Then wait 24 seconds, swish backdrop to backdrop 2, wait 1 sec, switch backdrop to backdrop 3, wait 1 sec, switch backdrop to backdrop 4.
Step 10: Last Backdrop
Go back to backdrops and click paint new backdrop. Then use the text button to write the first 100 digits of pi.
Step 11: Last Bit of Coding
Go back to he script and under the last bit put war 1 sec and then switch backdrop to backdrop 5.
Step 12: Finished Product