Step 1: Setting Up a Variable for Costumes

Goal:


Right now our shark doesn’t look very lively, and it even swims backwards! Lets get ready to change how the shark looks in the game.

Steps:

  1. Select the “Sharky” sprite.
  2. From Variables, create a new variable called “nextCostume”. Be sure to select “For this sprite only” and be sure you are on the “Sharky” sprite!
  3. Click the check box to uncheck the nextCostume variable so it won’t appear on the game screen.

Code:


Click to replay