Crafting and Inventory Implemented


Changed and added more things to the original crafting and inventory scripts, as well as implemented said scripts into the group project and created the necessary placeholder sprites, UI, and supplemented created sprites.

Screenshot 1

I redid the entire UI layout and substituted in the sprites created for the potions. Now, the full potion inventory is at the bottom and it shows each potion icon and how much of a potion the player has. I will also add names for the potions below them so the player knows which one is which.

Screenshot 2

When the player presses Tab, the inventory is brought up, which is shown through the background getting darker, the player unable to move, and more UI elements showing up. In this new screen is the full ingredient inventory with each of their icons (names will also be added), the craft buttons for each potion shows up, and a recipe list is at the top right so players know what ingredients are needed to craft each type of potion.

Screenshot 3

I couldn't figure out how to make the collecting action to be E, so the player will just click on an ingredient on the screen to collect it. After collecting some ingredients, they are shown in the ingredient inventory on the top left (so I collected 10 water, 3 clovers, 3 rose petals, 0 ginger, etc.)

Screenshot 4

If a player is able to craft a certain potion, they can press the Craft button above their desired potion to craft it, which gets added as seen with the numbers between (so I crafted 3 water base potions, 3 healing potions, 2 frost, and 2 stoneskin). Crafting them used up the ingredients that I collected, showing up as now having 0 in the ingredient inventory.

Screenshot 5

The player presses Tab once again to exit the inventory, which is shown through the Ingredient inventory and recipes going away, screen getting brighter, and player able to move again. When the player clicks on a potion's icon at the bottom, they will equip it, as seen on the bottom right corner which potion they currently have equipped (will add potion name and text saying "equipped"). The player is ONLY able to equip a potion if they have one crafted, so if they click on a potion at the bottom and they don't have any, they won't equip it.

Summary of Changes

  • Entire UI layout
  • Added all potions, ingredients, and recipes
  • Player presses Tab to open/close inventory
  • Player can only equip a potion if they have one available

Leave a comment

Log in with itch.io to leave a comment.