Skip to content

Please update your browser

Your browser version is not supported by this site. CS First may not work properly. Learn more

Transcript

Using the Stamp block you can create cool patterns like the one you see the butterfly making here.

There are two separate things going on in this example.

The butterfly is moving in a circle and it is moving across the screen.

As you build the code for this Add-On it helps to understand that these two actions are happening at the same time.

Breaking down a bigger problem into smaller parts and working on them one at a time can help solving problems easier.

Start by creating your pattern.

This example uses circles.

You can make whatever pattern you like.

Use the Stamp block to leave an image.

The pattern is created by making the sprite move and turn many times, stamping between each movement.

Use any numbers that works for your program.

Then tinker with the values and test your code until you are happy with what you see.

You can use the Change X by block and the Change Y by block to move your sprite.

The sprite in the example moves horizontally so its code uses the Change X by block.

To make this happen more than once use the Repeat block.

Test your code.

In order to make sure your sprite always starts in the same spot use the Go To block.

You may also find it useful to clear the screen.

Choose the event that will make the pattern start to draw.

This example uses the When The Sprite Is Clicked block.

Now it's your turn.

Use the Repeat, Stamp, Turn, and Move blocks to build a pattern.

Use the Repeat and Move blocks to make the pattern sprite stamp multiple times.

And finally, choose a spot for the sprite to start creating a pattern and a starting event.

Choose an Add-On
Twirl Pattern
In this add-on, you will program a pattern.
Bouncing and Talking
In this add-on, you will add a sprite that bounces across the screen and speaks when something happens to it.
Flashing Text
In this add-on, you will add flashing text to your project.
Say Stuff from an Array
In this add-on, you will have your Sprite say stuff from a list (Remember: In computer science, we sometimes call a list, an array).
arrow_backward Back
Next arrow_forward
Instructions
  1. Choose an Add-On, and click "watch" to learn how to build it.
  2. Once you finish one Add-On, try another one below the video!
Attributions
  • The song “Festival” is © YouTube-- CC-BY-SA 4.0 does not apply.
  • "The First Moon Landing" by Llyr111 ( https://scratch.mit.edu/projects/3030451/) -- Licensed under CC BY-SA 2.0 (https://creativecommons.org/licenses/by-sa/2.0/)
  • "UTC - FIRST Robotics Competition (13571310653)" by Barbara Bresnahan (https://commons.wikimedia.org/wiki/File:UTC_-_FIRST_Robotics_Competition_(13571310653).jpg#file) -- Licensed by Creative Commons Attribution 2.0 (https://creativecommons.org/licenses/by-sa/2.0/deed.en)