• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

inventory help

  1. nishi_dev

    Inventory bug i'm a beginner please help!!!

    I'm doing the first inventory of my life using a video as a study guide, but I'm having this error repeatedly, I've already changed several things in the code, I've redid it and I keep getting this error, am I missing something or is the code out of date? for the most current versions of game...
  2. MrPugMC

    Equipment System

    Hello once again, I am complete with my inventory system and right now I am working on an equipment system. I have made it so when I right click an equipment item (in this case a sword), it will go into the ds grid named "myEquipments", the big problem I have though is I can't for the life of me...
  3. MrPugMC

    Dragging item creates a duplicate

    Hello once more!!! I really wanted to avoid making yet another thread on an inventory system as I wanted to try and come up with a solution myself but I am genuinely stumped. I have an inventory system (mostly copied from "Let's Learn this Together") where I can drag an item over to an...
  4. MrPugMC

    Help with ds grid deletion and player healing

    Hello, I have made it so when the player right clicks on a health potion, the health potion will be deleted from the ds grid and the player will be healed by .25 HP (one quarter of a heart). The weird thing is, this all works extremely well until the player is almost at max health. So for...
  5. MrPugMC

    GameMaker Picking up more than one type of item will turn some items into another one

    Hello, I am having another weird bug that I quite don't understand why it's happening. I know where it exists but I don't know why it exists. So I have a system where I can drop items and then pick them up with the middle mouse button. It all works well, picking up an item that already exists...
  6. MrPugMC

    GameMaker Need help with ds_grid problem

    I am currently making an inventory and have come across a weird little problem. In the game you are able to pick up items from the inventory and move them around, everything works fine until you try to click outside the ds_grid while having an item picked up. Basically the problem occurs when...
  7. Vathe

    Creating a variable to get frame data

    Novice programmer here. I'm making a player inventory, but I cannot figure out how to give each item in the inventory the correct frame from the item sprite when they get added to the inventory. As a placeholder, the frame VAR that I want to collect the frame data is directed at the knife...
  8. F

    Help me with a inventory system

    I'm trying to create a inventory system, and I want to insert in an array the objects that the player take. For now I'm using a string. And I want to put that string in the array. this is my code in the player's step event: if ((distance_to_object(obj_takeable) <= 10) &&...
  9. M

    SOLVED Running a test, need a "key" item to open a "chest" and give a "gun" item

    hello! I'm pretty new to this so i hope im posting in the right place. I've been following this great tutorial mostly to a T () on how to make an inventory system (the only things ive changed have been no items sprites in the inventory for the sake of the game we're making) but now i cant...
  10. M

    SOLVED Using variables for a backpack and inventory system?

    Hello all! It's been many years since I used game maker as a young teenager! (Gm7) I've spent the last few days setting up an inventory and backpack system for a text-based RPG inspired by tabletop roleplaying systems. I've got 9 slots on my main screen where all information is displayed used...
  11. ThePlayerEden

    SOLVED Inventory Following

    So I have this simple inventory code that I tweaked a bit from a Youtube tutorial, anyways, the inventory mechanics works fine in my starting room. The problem is when I leave the room, the items in my inventory go off-camera in the corner of said room, instead of the corner of the player's...
  12. IcyIcing

    GameMaker Need help making inventory

    Hi! I need help making a code for my inventory, I haven't started at all because I genuinely don't know what to do. I am a beginner and I'm coding in GML for my project. I've watched and read multiple tutorials but none of them have the inventory style that I want for my game. The type of...
  13. M

    SOLVED [ SOLVED ]Help!, Item in Inventory System are disapear when oPlayer change rooms

    Hello everyone, By topic I need to take my items in my inventory to others rooms but I can't figure out, I tried global variable on array( ds_list_create() ) but not working. Would you help me pls first room and i got items : 1st image next room and i got items: 2nd image when i came back...
  14. T

    Tethering item system

    Hi I am relatively new to GMS2 and game programming. I am looking for ideas on how to implement a specific type of inventory/item system. In my game I have the player control a space ship and collect items in space. I want to make a system where the inventory of the ship is based on the items...
  15. thrownaway9k

    RPG inventories and the best data structure (list, grid, map, etc)

    I've been trying to wrap my head around this reading online, but now I'm a bit overwhelmed. I'm trying to make a very simple 16 slot inventory you'd see in an RPG like Final Fantasy or Earthbound, but I have no idea where to start. I have a simple 2 by 8 DSgrid labeled as inventory to start. So...
  16. D

    GML Inventory for a Drag and drop game. (Gamemaker 2 and GML)

    Had to make a game in gamemaker 2 for a school project. But our project needs some kind of Inventory that fits a Drag and drop game. Since im terrible at programming ive had some problems trying to figure out how to actually create a inventory system. Looking for help with finding some kind of...
  17. Divinik

    GML Looking Through Two Arrays for Duplicates?

    So I have a ds_grid that holds all items in the game. In the Inventory's Menu, there are tabs that copy certain "Types" of items from the master grid and creates it's own ds_grid for that tab. I'm trying to figure out how to delete the same item from from the sub arrays and the main array when...
  18. Divinik

    GML List Section of a ds_grid Based On Category?

    So I have an inventory system in the game I'm programming, and I want to be able to list only a certain category selected. The grid is set up as follows: 0 = Item Name 1 = Item Amount 2 = Item Description 3 = Item Sprite 4 = Item Script 5 = Item Type 6 = Item Icon The code to display the full...
  19. W

    GameMaker Inventory Items are not displaying in Draw GUI!

    Hey guys, I have been following this tutorial to set up my inventory system. However, instead of drawing through the draw event as he does, I am now trying to move all of that to the draw GUI event. Problem is, I can't get my items to display in my inventory when I pick them up. Everything else...
  20. C

    Inventory System Duplicating Sprites

    Hello all! I watched Beyond Us Games' tutorial on an inventory system () and tried to implement GUI to it, so that it follows the camera and player. For the most part, it works; however, when I press "I" to open the inventory, it creates the object, but duplicates the sprite, to where when I...
Top