Creating a Simple Inventory System in GameMaker - Tutorial

Sdílet
Vložit
  • čas přidán 27. 07. 2024
  • In this video let's start from nothing and create a simplistic inventory system that we can expand on and implement into our own games!
    🎈 Support 🎈
    Seriously anything from a comment, to a thumbs up is showing me support. If you want to go the extra mile check out my Patreon content at / gamemakercasts
    You can also checkout my website at gamemakercasts.com/
    🕒 Chapters 🕒
    00:00 - Introduction
    00:15 - Inventory Class
    03:55 - Inventory Object
    04:29 - Inventory Object | Create Event
    05:45 - Inventory Object | Step Event
    08:55 - Inventory Object | Draw GUI Event
    10:50 - Testing the Inventory
    11:15 - Using / Spawning Items
    13:06 - Thank you!

Komentáře • 19

  • @SGTIvan921
    @SGTIvan921 Před 7 měsíci

    I loved how simple this was - I didn't need a full-blown inventory. Well explained!

  • @skalk6137
    @skalk6137 Před rokem +1

    Its a great tutorial but I feel like you did not do such a great job explaining what everything does so, I feel like I did not learn that much, but it worked so that's good enough. Thanks.

  • @TabbedOutRat
    @TabbedOutRat Před 2 měsíci

    Great tutorial. Please note the link to the website doesn't work in the description.

  • @user-eh3ru3yv1o
    @user-eh3ru3yv1o Před 7 měsíci

    thank you

  • @digitalswordplay
    @digitalswordplay Před rokem

    Great job! - Any chance you could expand and add stacking, sorting and equipping in future videos ?

  • @yalikeren
    @yalikeren Před rokem +1

    great tutorial! (btw, title says "Simply" and i think it it was meant to be "Simple"?)

  • @specterrev
    @specterrev Před 3 měsíci

    i have no clue if you still check the comments but, when writing the add function the "if(array_length(_inventory) < _max_inventory_items)" gives me a error saying "the type 'undefined' appears where the type 'Array' is expected."

    • @GameMakerCasts
      @GameMakerCasts  Před 3 měsíci

      double check your variable _inventory then. Array length expects that variable to be an array. That's what the error means.

    • @specterrev
      @specterrev Před 3 měsíci

      @@GameMakerCasts the variable was written out the same exact way it was in the vid and no matter what I did the error didn't go away, I just reopened the project because I saw you replied and the errors randomly stopped, regardless thanks for taking the time to reply

  • @Gladiator373
    @Gladiator373 Před 18 dny

    Hello, i have issue - when i hit "I" nothing show up. Instead my computer starting crazy and i have to close it with Ctrl+alt+del. Is there any changes? Any ideas? Thanks!

    • @Gladiator373
      @Gladiator373 Před 18 dny

      i figure out - i had wrong { } -
      But new one rise up - my columes re not clicked when i hit them. Istead of that when i hit somewhere in "space" my columes are hit. Seems like big range of that or smt

    • @GameMakerCasts
      @GameMakerCasts  Před 17 dny

      Hit me up on discord and i can help you through it discord.gg/jwaCrcSZ

  • @mancakw8308
    @mancakw8308 Před měsícem

    when i tried pressing "i" the inventory did not show up, do you have any idea where i get it wrong? (sorry for my bad english)

    • @GameMakerCasts
      @GameMakerCasts  Před měsícem

      To me that means the step event isn't right. Should have something like if(keyboard_check_pressed(ord("I")) { .. }

  • @georgehennen
    @georgehennen Před 6 měsíci +1

    Are you, by chance, looking for someone to make more tutorials? I feel like I have so many years but want to make tutorials for stuff. I have made games before, even on steam. I ask because I notice it's "casts" not just one guy.

  • @michaelhooper1474
    @michaelhooper1474 Před 5 měsíci

    not really that simple, thats alot of information. Not for beginners.

  • @sgsjwdjwowj9535
    @sgsjwdjwowj9535 Před rokem +1

    Did not work