STEP 11: We need to keep track of how many dragons are on the stage to know when the knight has won.

  • Because we created the dragon_count variable outside our collision event, it needs to be a global variable.
  • In , drag in Global Variable indented INSIDE your collision event.
  • Change my_var to dragon_count.
  • Then, in LOGIC, go to and drag in Subtract Value. Change my_var to dragon_count.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE