Week 7
21: Tracking the number of inventory items
Receiving health potions
- When I receive give Health Potion
- Increase potions by 1
- Set textfield health potion count to
- Create text with number of potions, “ x Health Potion”

Adding collectables to inventory instead
- Edit collectable potion
- Use “give” instead

22: Using inventory items
Click to use potions in inventory
- When player presses, instance health potion icon
- If icon is visible
- If health potions > 0
- Broadcast use Health Potion
- Decrease potions by 1
- Set text of textfield health potion count to update (copy paste)
- Broadcast display chat You used potion!

- Update player script for “use Health Potion”

23: Overlapping objects
Change how objects overlap in front of each other
- Add tag inventory on inventory When created

- Edit chatbox script
- Add these to when level starts:
- Myself move in front first instance tag inventory
- Textfield move in front myself

24: Game menu screens:
Adding levels
- Add levels
- Rename them (start, level 2, game over, you win, etc)
- Drag them into correct order
- Resize them to match 960x540
- Draw stuff in them appropriately

Start button
- Add script to start button object (can be anything)
- When player presses myself
- Go to next level

Game over screen
- Edit player script
- Whenever player dies, change “go to last level” or level number (remember the level order, and first level is 0, next level is 1, after that is 2, etc.)

- Add script to button in game over level
- When player presses myself, go to first level

⚡ Bonus Activities ⚡
Bonus 6.1: Opening chests that give you items
Bonus 6.2: Gold coins in the inventory