0% found this document useful (0 votes)
50 views

Bouncing Off The Walls:: Adding Interactivity and If Statements

The document provides instructions for adding interactivity and conditional statements to a Scratch project involving a fish sprite bouncing off the edges of the stage and swimming continuously. It describes drawing a fish sprite that swims across the background when the green flag is clicked, using a forever loop and move blocks. It also explains adding an "if on edge, bounce" block so that the fish bounces off the edges of the stage. Additional instructions are given to add animation and sound effects using costumes and the space bar for a treasure chest sprite.

Uploaded by

noddynoddy
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
50 views

Bouncing Off The Walls:: Adding Interactivity and If Statements

The document provides instructions for adding interactivity and conditional statements to a Scratch project involving a fish sprite bouncing off the edges of the stage and swimming continuously. It describes drawing a fish sprite that swims across the background when the green flag is clicked, using a forever loop and move blocks. It also explains adding an "if on edge, bounce" block so that the fish bounces off the edges of the stage. Additional instructions are given to add animation and sound effects using costumes and the space bar for a treasure chest sprite.

Uploaded by

noddynoddy
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Bouncing Off the Walls:

Adding Interactivity and If Statements

1. Select the stage in your library.

2. click the backgrounds tab to view the available backgrounds and press the edit button. Draw
yourself a nice underwater background.

3. right click on the cat sprite and choose delete.


4. click the paint new sprite button, and draw yourself a fish. Give it a name like fish 1 or something
else that you will easily remember.

5. Make the fish swim across the stage when the green flag is clicked. Youll need a move block, a
forever loop, and a green flag block.

6. To make the fish bounce off the edge of the stage, add a if on edge, bounce block to the stack.

7. click the costumes tab for your fish, and copy the first one. Edit the new costume, and add a
change to the tail or fin so that we can cycle through the animation.

8. Click the scripts tab, and add some blocks to make the fish cycle between its two frames of
animation. You will need a next costume block and a wait block.

9. Click the new sprite button, and draw a treasure chest.


10. Add a new costume to the treasure chest with the lid up and bubbles coming out.
11. click the sounds tab on the chest sprite, and import the bubbles sound.
12. Select the scripts tab and add a when space key is pressed block. This stack of blocks will be
run whenever the spacebar is pressed.

13. Underneath that block, add a switch to costume block, a play sound bubbles and wait block,
and a switch to costume block.

You might also like