
Finally, we can upload our own photo or image from our computer to use as a costume. We can also edit the built-in costumes by selecting them, and using the tools to change them to how we want them to look. We can add costumes from Scratch, or paint our own with the tools in the center. #Animated ocean waves sprite plus#
In the costume editor, we can even add new costumes with the button on the bottom left, with the plus sign.By switching between them, we can give the appearance that it’s walking. For the cat, we have two different costumes, where its legs are in different positions.We’ll see that our fish has four costumes, “fish-a”, “fish-b”, “fish-c”, and “fish-d”, and we can select different ones by clicking on them.On the top left, we can use the “Costumes” tab:.
Each sprite has a costume, which is just the image of what the sprite looks like.Then, we can move them around so they’re not overlapping:.We can click “duplicate”, and now we’ll have two fish on our stage: We can right-click (or hold the control key and click) our fish, and see a menu with some options.We can click on each of them to change the position or size of them, for example. We also have both sprites in the bottom area, and the one highlighted in blue is the one that’s selected and the one that we’re working with.We can move them around so they’re not overlapping. We’ll click on the Fish, and we’ll see that both sprites are now on our stage.We can click on the categories or use the search box to find something in particular. For now, we’ll use the main “Choose a Sprite” button, and we’ll see a big list of sprites that come with Scratch that we can use.We can click the button with a little plus in the bottom of the sprite area, and see some options for adding a new sprite: When we click on the value for “Direction”, we’ll see a little dial that we can turn, which will also turn our sprite on the stage.We can also show or hide each sprite with the toggle labeled “Show”, and change the size (in percent), or direction, which rotates the cat to face some number of degrees:.This will help us keep track of our sprites when we start adding more of them to our project.
And we can click on the name of the sprite, and change it to something else as well.
We can also change the x- and y-values of our sprite directly by clicking on the values and typing in what we want. We can see the sprite’s current position as x- and y-values, but we can also control them with blocks in a little bit. Similarly, positive y-values will move the sprite up, and negative y-values will move it down. The perfect center of the stage is (0, 0), and positive x-values will move the sprite to the right, and negative x-values will move it to the left. It turns out that sprites are located on an x- and y-coordinate grid on the stage, where the x-value represents how far to the left or right our sprite is, and the y-value represents how far up or down on the stage it is. For example, the x-value is 177 and the y-value is 42 when the sprite is moved towards the top right: Notice that the values for the position of the sprite changes as we move it around. We can move our cat around the stage by just clicking and dragging it. Below the stage, we see all the sprites in our project, and currently we only have the cat, called “Sprite1”. When we create a new project, we see the Scratch cat character, called a sprite, which is just an object that can appear on the stage. On the top right side, we have the stage, where our project will run and be shown to others viewing or using it. On the left side, we have a library of blocks, where we can drag and drop any combination of them into the middle section, called the block editor, where we’ll build our project. We can go to Scratch’s website, click “Start Creating”, where we’ll see an interface like this:. Even though Scratch uses visual blocks as opposed to textual code, its programs are based on the same fundamental ideas and use same principles of computational thinking. We’ll learn and use programming concepts and ideas, like functions, loops, condition, and variables. By putting together “puzzle pieces” in Scratch, we can create visual stories, animations, games, and other programs. Scratch is a visual block-based programming language originally developed by a team at MIT’s Media Lab and now maintained by its own Scratch Foundation. Clubhouse Facebook GitHub Instagram LinkedIn ORCID Quora Reddit TikTok Telegram Twitter CS50’s Introduction to Programming with Scratchīrian J.