Score Panel

Obj: controller

Go into the controller object. We want to have the gun sprite show up in the score panel when the player picks it up to show they can shoot. Go into the Draw event and at the end add 2 more actions:

  • Test Variable: test and see if player has any ammo
    character.ammo > 0
    Note: the variable is characterObjectName.variableAmmoName so if you've named your stuff any different than in my instructions, it won't work unless you make your names match.
  • Draw Sprite: sprite = "ammunition", x="60", y="-5", subimg = 0

Room

If you test out your room, when you pick up the gun, you should see it in the score panel...

If all the monster stuff is working, get your game checked off.