Make the Cat Walk
๐ฏ The cat crosses the screen when you tap the green flag.
๐ก The idea behind it
A program is a list of instructions that run in order, from the top down.
๐งฑ Blocks you will need
when green flag clickedmove 10 stepsrepeat 10
๐จ Build it
- Drag 'when green flag clicked' into the empty space on the right.
- Drag 'move 10 steps' and snap it underneath โ you will feel it click into place.
- Click the green flag. The cat moves a tiny bit. That tiny bit is one instruction.
- Now wrap the move block inside 'repeat 10' and run it again.
- Change the 10 in 'move 10 steps' to 30 and see what happens.
๐ Make it harder
- Make the cat go all the way to the right edge and no further.
- Add 'next costume' inside the repeat so its legs move as it walks.
๐ Bugs you will hit
- Nothing happens: the blocks are not joined to the 'when green flag clicked' block โ they must be snapped to it.
- The cat is stuck at the edge: drag it back to the middle with the mouse.
โฌ Need Scratch itself?
Free from MIT, in a browser or as an offline app that needs no connection at all.