Skip to content

Please update your browser

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

arrow_back Adding Motion (challenge)

Choose an Add-On
play_circle_filled
Add a Title Screen
In this add-on, you will design and program a title screen that will appear at the start of your story.
arrow_forward
play_circle_filled
Costume Animation (Part 1 of 2)
This add-on will show you how to animate your characters using costumes and some new “looks” blocks.
arrow_forward
play_circle_filled
Costume Animation (Part 2 of 2)
This add-on will show you how to animate your characters using costumes and some new “looks” blocks.
arrow_forward
play_circle_filled
Adding Motion (challenge)
In this add-on, you'll be introduced to the "glide" block, which you can then use to add motion to your story.
arrow_forward
play_circle_filled
Add a Third Character
In this add-on, you'll add a third sprite to your story using a "broadcast" block.
arrow_forward
play_circle_filled
Add a Second Scene to your Story (challenge)
In this add-on, you’ll learn how to add a second scene to your story, then you’ll program the dialogue in that scene on your own.
arrow_forward
  • 1. Introduction to Dialogue and Sequencing
  • 2. Setting the Scene
  • 3. Speaking and Responding
  • 4. Add-Ons
  • 5. Reflection
  • 6. Wrap-up: Dialogue
  • 7. Wrap-up: Share Your Project
  • 8. Wrap-up: Show Your Project
arrow_backward Back Next arrow_forward
Transcript

In this add-on, you will add motion to your story using “glide” blocks.

Take a look at the motion menu. It contains many blocks that can move a sprite.

This video will introduce the “glide” block, but there are many ways to program a sprite to move.

To start, drag out a “glide” block. Click to test it. Notice that the sprite doesn’t glide anywhere. To make the sprite move, you need to enter an x and y position for the sprite to to glide to. Every position on the stage has an x and y value. To see those values, point your mouse to a position on the stage, and read the values output below it. In this example, the sprite will glide to the other side of the stage. That’s about x = 200 and y = 30. Try this in your project.

Then, try it to see how it works!

Once the sprite glides to the correct position, add the “glide” block to your story.

Press the green flag to try it out. Oh no! The sprite started in the position it was supposed to glide to. To fix this, set a starting position for your sprite using a “go to” block. The “go to” block works like the glide block, but it makes the sprite simply appear in a specific position, instead of gliding there.

To easily enter values in the “go to” and “glide” blocks, drag the sprite to the right position. Notice that the values in the block change based on the location of the sprite. Then, just place the block at the start of your program.

Try it out now! Great! The sprite starts at one position and glides to another.

for the sprite to glide to, and enter those values in the block.

Once you’ve added one “glide” block, try adding some more. See what type of motion you can create in your story!

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!