1 of 8

Step-by-Step

1. Add one sprite to represent a predator and another sprite to represent its prey.

2. Add a background that represents a habitat.

2 of 8

Step-by-Step

3. Make the predator sprite always point toward the mouse pointer and move toward it.

3 of 8

Step-by-Step

4. Create an algorithm (including a loop) to make the prey hide if it is touched by the predator.

Insert the “touching” block from the sensing category into the diamond of the if/then statement

4 of 8

Step-by-Step

5. Add code to make the prey reappear in a random spot on the screen.

Where would you add these blocks to the code sequence you have already created?

5 of 8

Step-by-Step

6. Add sound effects that will start when the prey is touched by the predator sprite.

Where would you add these blocks to the code sequence you have already created?

6 of 8

Step-by-Step

7. Add a starting location for the sprite and a “show” block.

7 of 8

Step-by-Step

8. Duplicate the prey sprite to make multiple prey.

9. Drag the copies of the prey sprites to different locations on the stage to spread them out. Don’t forget to give each sprite a different starting location.

Right Click on a sprite and select “duplicate”.

A copy will be made of the sprite and all its code.

8 of 8

Revise

Can you add a scorekeeping variable?

Can you make your predator move with the arrow keys?

Can you add other sound effects. (Ocean noises, music, etc)

Predator/Prey

Can you make different levels?

Debug

Does everything work the way you want it to?

Is there anything you want to change?

score

5

Animate the predator to do something when he eats the prey.