Scratch exercise 72

Script switching

In this tutorial you will create different scripts to control the cats movements and then switch between them with the number keys on your keyboard ..

Complete these steps ..

  1. Create a new game file.

  2. Re-name sprite1 "Cat".

  3. Create a variable called "which script" (for all sprites)


  4. Add these scripts to the Cat sprite ..


  5. Go to "File > Save as" and save your game. Name it "script switching".


  6. To test your game press "B", then move your mouse around the stage and press the "1", "2", "3", "4" and "5" keys to switch between scripts.