Welcome back, explorer! đ
Today, weâre going on a treasure hunt with Scratch Cat. Letâs find the hidden gems! đ
Step 1: Meet Scratch Cat Find Scratch Cat on the stage. Heâs our main explorer for the treasure hunt.
Step 2: Moving Scratch Cat We want Scratch Cat to move when we press the arrow keys. Hereâs the easy way to do it:
- Click on âEventsâ and grab the âwhen green flag clickedâ block.
- Then go to âControlâ and get the âforeverâ block. Stick it under the first block.
- Inside âforeverâ, we need two âifâ blocks from âControlâ. One for the right arrow key, and one for the left arrow key.
- From âSensingâ, put a âkey [right arrow] pressedâ in the first âifâ and a âkey [left arrow] pressedâ in the second.
- In both âifâ blocks, from âMotionâ, add a âchange x by 10â block. In the âleft arrowâ one, make it âchange x by -10â.
Now, Scratch Cat moves left and right with your arrow keys!
Step 3: Treasure Time! đïž Letâs add a treasure for Scratch Cat to find:
- Click the face below the stage to pick a sprite. Choose a gem or any sprite you like.
- Drag the âwhen green flag clickedâ block for the gem.
- Go to âMotionâ and add a âgo to random positionâ block.
Now, when you click the green flag, a gem appears at a random place!
Fun Puzzle: Scratch Cat Finds the Treasure! đ§©
Hereâs a fun challenge: Can you make Scratch Cat say âHooray!â when he touches the treasure? Youâll need to use blocks from âControlâ, âSensingâ, and âLooksâ.
Hereâs how you can do it:
Step 4: Celebrating the Treasure When Scratch Cat touches the treasure, we want him to cheer:
- Click on Scratch Cat to choose him.
- Start with the âwhen green flag clickedâ block from âEventsâ.
- Get the âforeverâ block from âControlâ.
- Inside âforeverâ, put an âifâ block from âControlâ.
- Inside âifâ, from âSensingâ, put a âtouching [gem]â block. Make sure to choose your treasure sprite!
- Inside âifâ, from âLooksâ, put a âsay âHooray!â for 2 secondsâ.
Now, Scratch Cat will say âHooray!â whenever he finds the treasure!
Well done, explorer! đ You helped Scratch Cat find the treasure and even made him cheer when he found it! That was a lot of fun. Keep exploring and creating your own adventures with Scratch!
Parents: The above was generated 100% with ChatGPT 4. Iâve been trying to figure out how to get young people interested in tech and this is a good tool to help achieve that goal. For reference, my original prompt was âWrite an introduction tutorial to scratch.mit.edu for a 3rd grader who doesnât like to read to see if they are interested in programmingâ with some further modifications, so use it at your own risk. Generate your own activities at https://chat.openai.com/chat. đ