Scratch Silver III
Scratch Silver II
SCRATCH SILVER I
SCRATCH GOLD III
1 of 3

1.06 Create another sample

Choose what the rover samples next! Does it see a new species of plant, bug, or animal? Does it see some water or mysterious liquid? Does it want to sample some dirt or a rock, or even the air? Or something else?

Choose: Add a new sample sprite for the rover to collect. You can add this to your project either by selecting one from the library or drawing your own.

Get your sample sprite to scroll. If it is low down on the screen it should move more (change x by should be higher than 5), and if it is high up on the screen it should move less (change x by should be lower than 5).

Add code so that your sprite scrolls.

Choose: Depending on what you want the rover to sample next, you can either use the rover animations that are there already, or create more animation sequences by duplicating and editing the costumes.

Add a My Blocks block to your rover sprite to animate the rover when it collects the new sample. You can copy and paste the code from one of the other My Blocks you have created.

For instance, here is a costume sequence for collecting solar energy:

Three costumes shown with the rover extending a solar panel.

To animate this series of costumes you could use the following code:

Next, broadcast a new message in your new My Block block that will cause a costume or graphic effect change in the sample sprite.

Use an if block to detect if the rover is touching the sprite or touching a colour on the sprite, so that the new My Block is only used then.

If you like, add an animation to the sprite, so that its appearance changes when the rover has collected the sample.

×
×

Cart