Introducing 

Prezi AI.

Your new presentation assistant.

Refine, enhance, and tailor your content, source relevant images, and edit visuals quicker than ever before.

Loading…
Transcript

Scratch Cat Explores Coordinates

Exploring Coordinates on the Stage

This software bug can be fixed by adding some more code--that is, new blocks--to your program. Simply place a new block from the blue Motion palette above the green Pen blocks and below the "when (green flag) clicked" block.

To use Scratch to program movements, you first have to understand how Scratch positions things.

1. Click the Stage icon on the Sprite List. Switch to Backgrounds tab in the Scripts Area and choose Import.

Next click the Pen palette and drag out four green Pen blocks.

Click the number of a coordinate to change it. Set X to 0 and set Y to 125. Now click the block to run it!

Now select the stamp copying tool to copy the blocks 4 times.

go to X: 0 Y: 125

wait 0.1 secs

go to X: 150 Y: 30

wait 0.1 secs

go to X: 100 Y: -120

wait 0.1 secs

go to X: -100 Y: -120

wait 0.1 secs

go to -150 Y: 30

wait 0.1 secs

To make Scratchy move in a loop continuously, drag out the command block "forever" from the Control palette and place it at the top of the code.

Now let's make Scratchy glide!

Follow this picture and type these coordinates. When you are done, click the whole command block to make Scratchy jump around in a pentagon shape!

We can join these two programs together by dragging out the "when (green flag) clicked" block from the Control palette, and put it on the top of your two scripts.

Remember to save this file when you are finished so you can edit it later.

glide 0.1 secs to X: 150 Y: 30

glide 0.1 secs to X: -100 Y: -120

glide 0.1 secs to X: 0 Y: 125

glide 0.1 secs to X: 100 Y: -120

glide 0.1 secs to X: -150 Y: 30

Select the xy grid from the library of backdrops

RIDING A FLARE FROM THE SUN

Go to "File", click "Save As", then enter the name of the file in the "New Filename" box. Press "OK."

Hover your mouse over the edges of the stage and find the X and Y coordinates for each of these points.

Build a second stack of blocks that uses the change pen color by 1 command and see what happens. Isn't that cool? You can give a sprite more than one set of blocks. Scratchy now has two programs!

Learn more about creating dynamic, engaging presentations with Prezi