Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Inventory & Shops in Godot!
Rating: 2.7 out of 5(3 ratings)
54 students

Inventory & Shops in Godot!

Pick up items, display the player's inventory, drop, use, or equip items, and trade items with NPCs.
Last updated 8/2024
English

What you'll learn

  • Learn different methods for letting the player pick up items.
  • Manage the player's inventory data and display their items in an inventory menu.
  • Drop, use, or equip items from the player's inventory.
  • Trade items with an NPC character.

Course content

1 section9 lectures2h 3m total length
  • Setup1:06

    What you should have before starting and what is covered in this course.

    Official Course Setup Lecture

  • Coins13:53

    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.

  • Polish16:41

    Make the simple act of picking up coins more satisfying for the player with visual and audio effects.

  • Pick Up17:39

    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.

  • Inventory15:34

    Build an inventory menu that removes player control without pausing the game.

  • Items15:21

    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.

  • Consumables17:33

    Drop or use items from the inventory menu taking into consideration both PC and controller inputs.

  • Equipment12:11

    Equip items from the player's inventory to the player character through the inventory menu.

  • Shop13:43

    Allow players to buy and sell items with an NPC shop.

Requirements

  • Students should have completed "Dialogue & Events in Godot"
  • Or have a Godot project ready with a playable character and assets for items and their icons.

Description

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.

Who this course is for:

  • First time game developers, or anyone switching over to the Godot engine from other engines.
  • Experienced 2D game developers who are interested in learning about 3D.
  • Anyone who has completed beginner tutorials but would like to learn real game infrastructure that is scalable.