Step 1: Costume Number Variable

Goal:


Let’s start coding by making a variable called “costume”.

This variable will allow us to to choose 1 of three costumes for our enemy sprite – which will be either a platform the player can land on or spikes the player needs to jump over.

Steps:

  1. Select Variables.
  2. Click the Make a Variable button.
  3. In the window type “costume”.
  4. Make sure “costume” is unchecked.

Code: