What if the Scratch Cat did not run fast enough to catch the bus?
Select the Scratch Cat sprite and add a wait
block:
Test: Click on the green flag. The Scratch Cat will walk too slowly and miss the bus!
You will want delays of less than one second. 0.5 is half a second, 0.25 is a quarter of a second, and 0.1 is a tenth of a second.
Change the delay in the wait
block:
Test: Click on the green flag, and the Scratch Cat will walk faster. Choose the delay that you like the most.
If you want the Scratch Cat to miss the bus, remove the hide
block from your code so that the Scratch Cat stays on the Stage:
If you want the Scratch Cat to catch the bus, make the bus wait longer before it leaves:
You will need to put the hide
block back in the Scratch Cat sprite’s code if you have removed it and want the Scratch Cat to successfully catch the bus.
Make changes until you get the animation to work the way that you want it to.
When working on a project, you often go back and change or improve your code as you get new ideas.