Click to watch the switch costume tutorial
Click the block button
Get the switch costume block
Drag the switch costume block into when sprite1 collides with coin class.
Click the field says "sprite1" and select "collidee2"
Click the field next to "costume to" and select "costume8"
Click the play button
Now, when you hit a coin, it will change to a blue gem