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.