Introduction: Dancing Pi

Picture of Dancing Pi


Step 1: Scratch

Picture of Scratch

First you must go onto Then if you have an account, log in. If not, sign up.

Step 2: Create

Picture of 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

Picture of 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

Picture of 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

Picture of 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

Picture of 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

Picture of 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

Picture of 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

Picture of 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

Picture of 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

Picture of 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



Katyaschadha (author)2016-04-05

If you like this, check out my channel KIY with Katya

BrendanC1 (author)2016-03-28

This is very cool! I think the scratch project is missing a numeral though. Right now you have 3.141596...

when it should be 3.1415926

tomatoskins (author)2016-03-22

Very cool! Thanks for sharing!

About This Instructable




More by Katyaschadha:Custom Pi CaseDancing Pi
Add instructable to: