
What you should have before starting and what is covered in this course.
Official Course Setup Lecture
Use global signals to connect a collision with a stack of coins to the player's progress data and updating the UI all automatically. Use Tweens to hide UI elements when they are not needed.
Make the simple act of picking up coins more satisfying for the player with visual and audio effects.
Detect when items are around the player to be picked up, figure out which one is nearest to the player, and add it to their inventory at the press of a button.
Build an inventory menu that removes player control without pausing the game.
Initialize the player's inventory and add items as they are picked up, either as individual items or in stacks, and display information about selected items in the inventory menu.
Drop or use items from the inventory menu taking into consideration both PC and controller inputs.
Equip items from the player's inventory to the player character through the inventory menu.
Allow players to buy and sell items with an NPC shop.
Welcome to my course on Inventory & Shops in Godot!
You're welcome to join our discord server to work on this course alongside your peers.
This course is a continuation of Dialogue & Events in Godot, but can be followed and applied to any project that involves picking up items, adding them to an inventory, dropping, using, or equipping items from an inventory menu, and trading items with an NPC. In this course, we will cover different methods of picking up items, managing the player's inventory data, displaying their inventory on the UI in a menu, allowing the player to interact with their inventory in different ways, and trading items with NPCs.
When you're done, you'll have a simple inventory system for your game that is easily customizable in its presentation and function. You'll also learn useful skills for working with the Godot game engine; organizing and designing your projects to be more scalable. You will be learning how to code with GD script, with everything explained in detail. We will apply object oriented design principles in our scripts; Inheritance, Encapsulation, Abstraction, and Polymorphism, to keep them organized, customizable, and reusable for a project of any size.
All of the project files are also available on GitHub if you need to review the project as it was after completing each lesson. These videos were recorded using Godot version 4.2.2. The project starts with assets from KayKit's Character & Dungeon Remastered Packs made by Kay Lousberg, Basic GUI Bundle made by Penzilla, and Fantasy Icons Pack made by Shikashi. All are available to download for free on itch. Extra sound effects made by Valenspire are also included and are available from FreeSound.