inventory help

  1. 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...
  2. 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...
  3. 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...
  4. W

    GMS 2 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...
  5. 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...
  6. G

    Legacy GM [Solved]Need help with inventory system

    Hi, i'm new to programming and still learning, i want to make a inventory system that have visible slots at top and when i press Tab key it will show more slots, as a chest, for example. It's most based on Magicite and Roguelands system, for reference, i got to make it apear, but not disapear...
  7. Karlabos

    GMS 2 (Solved) Help using item from inventory

    Hi. I am trying to code my inventory stuff. So far I have an inventory with 'mymaxitems' slots and the latest slot which actually contains an item is the number (mytotalitems)th. It turns out every item of the inventory is an instance of obj_Item, for which then I assign the sprite and the...
  8. S

    GMS 2 Glitch With Highlighting Slot In Inventory

    I'm making a inventory system in gms2. I was trying to highlight whatever slot your mouse was touching except that doesn't happen. If i put my mouse on slot 0, then it highlights 0. If I put my mouse over slot 1, it highlights the slot under slot 1 and if I put it on slot 2, it highlights the...
  9. J

    GMS 2 best inventory system?

    I'm looking for the best way to code an particular inventory system for my game. I want to be able to pick up an item in the game, or be given an item by an npc, then have the item disappear and for the sprite to be drawn in the inventory, which would be viewed by pressing a button. Then I want...
  10. Master Maker

    Legacy GM Tabbed Inventory

    So, I am currently making a top-down RPG, and I was wondering how to create a tabbed inventory system. By this I am meaning an inventory room, in which there is the master inventory, with the hot-bar at the top of the screen, and then below the 'quick access' inventory, with tabs for potions...
  11. S

    [SOLVED] Inventory Not Drawing To Screen

    I have this block of code located in the Draw GUI event of my inventory object: if (global.showInv) { var x1, x2, y1, y2; // x1 = left side, x2 = right side, y1 = top side, y2 = bottom side x1 = camera_get_view_x(view_camera); x2 = x1 + camera_get_view_x(view_camera); y1 =...
  12. R

    Help In Inventory System

    hi so i made an inventory system with 5 slots and this is my script for Item pick up : itemnumber = argument0; if(Slot1 == -1) { Slot1 = itemnumber; return(0); } if(Slot1 != -1) { if(Slot2 == -1) { Slot2 = itemnumber; return(0); } if(Slot2 != -1) {...
Top