Constructor - The king of data [GameMaker | Advanced] @1upIndie
Constructor - The king of data [GameMaker | Advanced]  @1upIndie
Uploaded February 2024 | Updated September 2026, 14 hours ago
This advanced video tutorial shows you how to use efficient data with constructors in GameMaker.

Image you have an inventory with hundreds of entries and each entry has values like name, costs, icon image etc. . Creating for each entry one variable per value even with arrays is not an good way to handle that task. So what I think is one efficient way is to create structs via constructor and store each entry into one array. By that you have only one index that defines which item you want values from. That's it!

Tldr: Yes


Video on structs:
youtu.be/k874pndLJEs


// slime from the thumbnail:
ggoolmool.itch.io/slime


πŸ‘‘ Support me and get fresh game art and game maker projects every month:
patreon.com/1upindie

Follow me on:
πŸ“Έ Instangram: instagram.com/1upindie
🐦 Twitter: twitter.com/1upIndie
πŸ’¬ Discord: discord.gg/gvr98nb
πŸ“œ Udemy: udemy.com/course/become-a-video-game-developer-with-gms-23 (See youtube about page for discount)


----------------------------------------------------------------------------------------
0:00 What we will do
1:22 Subscribe
1:34 Old school way of storing items/data with single variables
2:38 Using arrays to store
3:23 Using structs to store
6:29 Using constructors - Setup
7:00 Store each new entry/struct into an array
8:12 Adding variables to the constructor
10:00 How to grab entries/items
12:58 Modulary advance the constructor with a function
Constructor - The king of data [GameMaker | Advanced]Roadmap and starter project file [#0 Remake Undertale in GameMaker ]Castlevania style inventory [Game Maker | B tour]Narita Boy - An excellent game, 8/10How to become a (indie) game developer - Comic on KickstarterHotline Miami Remake in GameMaker #34 - Rotation fixHazardous Journey - [Super Demon Survivors OST]Animation control [Game Maker Studio 2 | Basics]The annoying teleporter [Game Maker Studio 2 | Enemy Ai]How to make a platformer in Gamemaker (the easy way) #5Loops - How they work [Game Maker | Basics]Dune spice wars, Alwas Awakening, Witchcrafty,  A Retired Mens Nude Beach Volleyball League review
1up Indie |

Constructor - The king of data [GameMaker | Advanced]

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER