Uploaded September 2019 | Updated November 2026, 3 hours ago
In this Godot Tutorial, we dive into the match command and how it helps you write more concise and performance-friendly code. We finish the code to loot items from a chest. We make the items appear visually in our inventory, and we prepare our code for error handling when the player tries to overload his/her inventory. While doing all that, I explain how the 'match' command works in Godot, and how it helps you write more concise code, and simultaneously increasing the performance of your game.
⬧⬧⬧⬧⬧ GDC TUTORIALS ⬧⬧⬧⬧⬧
I believe educational material should be available to all, for free
Support this vision by joining the GDC-Club and get perks in return
youtube.com/c/gamedevelopmentcenter/join
patreon.com/gamedevelopmentcenter
⬧⬧⬧⬧⬧ LEARN MORE GAMEDEV ⬧⬧⬧⬧⬧
These books have helped me in my game design and programming, I whole fully recommend them to you!
Level Up! The Guide to Great Video Game Design ►► amzn.to/3hIg6dE
Game Programming Patterns ►► amzn.to/35IoDsH
The Art of Game Design: A Book of Lenses ►► amzn.to/35MSHoU
⬧⬧⬧⬧⬧ LIVESTREAMS ⬧⬧⬧⬧⬧
I Livestream game development twice a week right here on YouTube.
Subscribe and hit that Bell Icon to make sure you don't miss it!
youtube.com/c/GameDevelopmentCenter?sub_confirmation=1
Tuesday and Thursday
1900 to 2200 (GMT+1/2 (winter/summertime), that's;
1200 to 1500 (PST), or
1500 to 1800 (EST).
⬧⬧⬧⬧⬧ COMMUNITY & SOCIAL ⬧⬧⬧⬧⬧
Join the community! Follow me on Social!
DISCORD ►► discord.gg/DwcFXyS
TWITTER ►► twitter.com/GamedevStefan
⬧⬧⬧⬧⬧ ABOUT GDC ⬧⬧⬧⬧⬧
GDC, Game Development Center, was created to provide in-depth tutorials on game design theory and game development using the Godot Game Engine. I aim for multi-part Godot tutorials, allowing me to dive deeper into Godot's features.
⬧⬧⬧⬧⬧ DISCLAIMER ⬧⬧⬧⬧⬧
Some of these links go to one of my websites and some are affiliate links where I'll earn a small commission if you make a purchase at no additional cost or disadvantage to you. You will receive the same price and service.
In this Godot Tutorial, we dive into the match command and how it helps you write more concise and performance-friendly code. We finish the code to loot items from a chest. We make the items appear visually in our inventory, and we prepare our code for error handling when the player tries to overload his/her inventory. While doing all that, I explain how the 'match' command works in Godot, and how it helps you write more concise code, and simultaneously increasing the performance of your game.
⬧⬧⬧⬧⬧ GDC TUTORIALS ⬧⬧⬧⬧⬧
I believe educational material should be available to all, for free
Support this vision by joining the GDC-Club and get perks in return
youtube.com/c/gamedevelopmentcenter/join
patreon.com/gamedevelopmentcenter
⬧⬧⬧⬧⬧ LEARN MORE GAMEDEV ⬧⬧⬧⬧⬧
These books have helped me in my game design and programming, I whole fully recommend them to you!
Level Up! The Guide to Great Video Game Design ►► amzn.to/3hIg6dE
Game Programming Patterns ►► amzn.to/35IoDsH
The Art of Game Design: A Book of Lenses ►► amzn.to/35MSHoU
⬧⬧⬧⬧⬧ LIVESTREAMS ⬧⬧⬧⬧⬧
I Livestream game development twice a week right here on YouTube.
Subscribe and hit that Bell Icon to make sure you don't miss it!
youtube.com/c/GameDevelopmentCenter?sub_confirmation=1
Tuesday and Thursday
1900 to 2200 (GMT+1/2 (winter/summertime), that's;
1200 to 1500 (PST), or
1500 to 1800 (EST).
⬧⬧⬧⬧⬧ COMMUNITY & SOCIAL ⬧⬧⬧⬧⬧
Join the community! Follow me on Social!
DISCORD ►► discord.gg/DwcFXyS
TWITTER ►► twitter.com/GamedevStefan
⬧⬧⬧⬧⬧ ABOUT GDC ⬧⬧⬧⬧⬧
GDC, Game Development Center, was created to provide in-depth tutorials on game design theory and game development using the Godot Game Engine. I aim for multi-part Godot tutorials, allowing me to dive deeper into Godot's features.
⬧⬧⬧⬧⬧ DISCLAIMER ⬧⬧⬧⬧⬧
Some of these links go to one of my websites and some are affiliate links where I'll earn a small commission if you make a purchase at no additional cost or disadvantage to you. You will receive the same price and service.










