How to Code Your Own Dancing Dog.
by happyunicat in Craft > Digital Graphics
425 Views, 2 Favorites, 0 Comments
How to Code Your Own Dancing Dog.
Hello I'm gonna show you how to
code an animation on Scratch.
And this code and art are original I did the code my self and the art.
Supplies
Laptop, phone, and tablet.
Going to Scratch.
this is what the home page will look like here is where you'll go scratch
Also you don't need an account unless you want to save it. Always get your parents permission first. :)
Disclaimer I do not own scratch its just a cool coding website my brother showed me. :3
Explaining the Coding.
I'm going to explain what the code does first before we put it in.
The when clicked is an event so when you click it with the code its going to make it start dancing.
The point in direction is a motion its going to point your dogs head in the right direction it suppose to be. (optional it could also be what ever you'd like it to be.)
Next you the go to x to y . The x will make it turn to the right or left, the y is going to make it go up or down so you can position the head and body where you want it. Now the x to y is also an motion.
Then you have the forever that is a control, it'll make the head move over and over its practically a infinite loop.
Now you have the turn left and turn right that is also an motion it'll make the head back and forth.
Then you have the wait that is a control. It'll make it wait how many seconds you want it to dance or move.
You can also put music or any sound to (optional)
And I'll also explain this to if you want sound/music.
Of course your gonna need the when clicked which again is an event and the for ever which is an control again.
Then you have the play sound that is where your gonna put your sound/music.
Now the explaining may be long but the coding is short. I just wanted to explain what the code does first so you understand it a little better. :3
Finally! the Coding!!
So up above that's the code you'll put in also the background I made my self. So scratch will have backgrounds and sounds you can use or you can do what I did with the art also I just uploaded the sound. You an go to my dancing dog on scratch to and see the code and you can just use this dog to.
So that's pretty much it!
I hope you have fun with this!
https://scratch.mit.edu/projects/513834327