SCRATCH
APP – FOLLOW
MOUSE CURSOR
DESCRIPTION
For this
application, you will make your sprite move a little around the screen in
order to explore a few motion statement blocks.
STEPS
STEP 0 – NEW APPLICATION
- You need to start with a new
application. So choose File >
New. Of course, you need to save
any previous work beforehand or it will be lost.
STEP 1 – THE GREEN FLAG EVENT
- Like most programs, we will start
with the When green flag clicked block. Drag it in.
STEP 2 – MOVE 10 STEPS
- In the Motion statements, you
will find move (10) steps. This will make your sprite move to the
right. Add it to your code block.
Test
your program. Your sprite should move
a little to the right.
STEP 3 – ROTATION
- In the Motion statements, you
will find turn clock-wise (15) degrees. This will make your sprite rotate by
15 degrees. Add it to your code.
Test
your program. Your sprite should move
a little to the right and then rotate a little.
STEP 4 – SPRITE LOCATION IN
APPLICATION WINDOW
- Notice that your sprite is moving
around in your application window.
At any time, you can drag it back to the middle of the window so
that it isn’t too close to the edge.
Try
dragging your sprite around and running your program a few times to see how
this works.
STEP 5 – SAVE YOUR WORK
GOT EXTRA TIME?
- Try exploring these statements by
adding them to the end of your code:
- Go to x (25) y (35)
- Change y by (10)
- Point in direction (90)
|