{% trans 'Watch it here now.' as msg_meta_extra} Adding Motion (challenge) - Dialogue - CS First 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)

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.

To find out what a block does, just click on it.

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 it to test it.

Notice that the sprite doesn't go anywhere.

To make the sprite move you need to enter an X and Y position for the sprite to glide to.

Every position on the stage has an X and Y value.

In this example, this sprite will glide to the other side of the stage.

Looking at the values output, that's about X = 200 and Y = 30.

Try this in your project.

Find a spot for the sprite to glide to and enter it into the glide block.

Then try it to see how it works.

If the sprite doesn't glide to the right spot, just drag the sprite back and test some other values.

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 kinda like the glide block but it makes the sprite simply appear in the specific position instead of gliding there.

To easily enter values into the go to and the glide blocks just drag this sprite to the right position and 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.

Now it's your turn.

First, add a glide block to your program.

Second, find a position for the sprite to glide to and enter those values in the block.

Third, set a starting position for your sprite using a go to block.

And then once you've added a glide block, try adding some more.

See what type of motion you can create in your story.

Choose an Add-On
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.
Costume Animation (Part 1 of 2)
This add-on will show you how to animate your characters using costumes and some new “looks” blocks.
Costume Animation (Part 2 of 2)
This add-on will show you how to animate your characters using costumes and some new “looks” blocks.
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.
Add a Third Character
In this add-on, you'll add a third sprite to your story using a "broadcast" block.
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_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!