Project 533: Obstacle Course

7. Program breakable stones

There are some stepping stones that are safe for our character to use when crossing the river, but there are also stones that will break and crumble if the Adventurer tries to step on them. Show the stones breaking when they are clicked on.
Starting point file for this challenge

Your goal

Steps

1. Add "when this sprite clicked" block

Go into one of your Breakable Stone sprites and add a new "when this sprite clicked" event. You do not need to change any of the code that is already in these sprites.

2. Switch costume to broken

Add a "switch costume to ___" block from the purple "Looks" tab. Change the costume to 'broken'. 
Now, when this breakable stone is clicked on, the costume will change from a cracked stone to a broken one. 

3. Set color effect

When we break the block, we also want to make it look like it falls apart and sinks down under the water. So we are going to change the color by using another block from the purple "Looks" tab.
Add a "set color effect to ___" and change the number to 30.

4. Set ghost effect

When something is underwater it is also harder to see, so we are going to make the broken stone look like it has been blurred by adding another "set color effect to __" block. Make it set 'ghost' effect and change the number to 25.

5. Make the stone sink

The last thing we need to make the stone look like it's sinking is to make it move down a little bit, so we want to change the y coordinate of the sprite.
Add a "change y by __" block from the blue "Motion" tab and change it to -5. 

6. Repeat for other breakable stones

Repeat steps 1-5 of this challenge in the other two breakable stone sprites.