Floating Jellyfish Scene on Scratch
by lschlegel in Design > Digital Graphics
14 Views, 0 Favorites, 0 Comments
Floating Jellyfish Scene on Scratch
This is an easy design for people who want to make a relaxing scene to look at. It is a great project for people starting to get into coding. You can easily modify it to make it into a space scene, or other amazing and relaxing scenes. Scratch is a great website to start learning to code on, and it is easy to understand.
Supplies
For this project, you need:
- A computer or some other device that you can get to Scratch on
- A Scratch account (don't worry, it's free)
And that's it! You're ready to code!
Setup
On the Scratch home page once you're logged in, hit the "create" in the top-left corner. Go to the top of the screen and change the name of the project if you want, then select the sprite icon in the bottom right corner (the purple circle with a cat head). Now you can type in the sprite you want to search for, and you can pick one (I chose a jellyfish). Then you can delete the cat sprite.
Next up is the background. This is the icon next to the sprite icon (another purple circle). Search for and pick you desired background, and then you can move on.
Making the Variables
Now you need to make the variables for the project. I used three, and called them Clones, Erase, and Curfew. Clones is the clones of the original jellyfish, Erase is when they reset, and curfew decides when the clones are erased. These are all interconnected and vital to the code. To create them, select "variables" on the left, and hit "make a variable." Then you can type in the variable name, and then move on to the next variable. When you're all done, move on to the next step.
The Original Sprite
If you are confused about where to find blocks, their categories are all color-coded, so you can easily find your way around as you code.
Half of the code is for the original sprite, and the other half is for its clones. The first image shows part of the code for the original sprite, this sets up the variables and the costume of the sprite. The next image shows the rest of the code for the original sprite.
The second image shows the code that makes it so that the number of jellyfish onscreen at any given time is not too large. It then resets the variables to repeat the whole process again.
The Clones
The first image shows part of the code for the clones of the sprite. This just sets them floating around the screen.
The second image shows the rest of the code for the clones. This changes the size and costume of the jellyfish clones, and controls their population.
Again, it is very helpful to keep in mind that the categories of blocks are color-coded to help you as you make projects.
Run and Done
That's it! Your project is completed! You can customize all you want, from changing the speeds or sizes to the costumes themselves. Run the code, and watch those jellyfish float!
Have fun coding!