inventory

  1. R

    SOLVED checking a value in a ds_list

    hi guys, i'm having a problem with my game involving my inventory. I'm trying to fix a bug that when I go to craft a new item, in addition to spending the materials, the item is not created because the inventory is full, so to fix this I had an idea, to check if there is space, and if there is...
  2. T

    GMS 2.3+ Ds_list check problem

    I created a ds_list inside a global variable called "global.inventario". I succesfully created a code that make my items apear inside my inventory, the numbers rise when I get more items and decrease whe I use it, but, when it reach "0" I need it to be deleted of my ds_list. There is the...
  3. O

    Global Inventory System

    So i should start off by saying ive looked up almost every inventory tutorial and have tried to learn all the data structure types but im still struggling to adapt something into what i need. From what ive seen Structs seem to be the best method for when items have alot of variables and info...
  4. G

    Networking problem...

    Hey all again, I'm in the process of working on my RPG (more info soon enough) and I was wondering if somebody could walk me through the steps of implementing an inventory system. Here's how I'm thinking of it and I just want to know how on/off I am with it. So the server processes input and...
  5. 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...
  6. E

    RPG engine devlog

    Hello! This is the inventory system that i built in GMS2. It has multiple components and i will present them in separate clips: Inventory series - 01 Player's inventory Inventory series - 02 Storage boxes in the world Inventory series - 03 The merchant (buy/sell mechanic) (+multiple tabs...
  7. FoxyOfJungle

    GML Search Items In An Array (for inventory)

    GM Version: GMS 2+ Target Platform: ALL Download: N/A Links: N/A Language: GML Summary: Search for items in an array. I write a string, and it will find all items matching the search. Tutorial: Do you want to make an inventory or a list of some store/shop or a highscore list and want to...
  8. just makin games

    SOLVED Inventory system question

    FIRST OF ALL: THIS IS JUST A QUERY. I'm not asking for a programming fix or anything here. So if you're here to fix someones bug, this isn't the post for you. I don't expect this to be taken as a programming error that needs to be fixed or anything, just a bit of a question. I'm working on a...
  9. thrownaway9k

    GMS 2.3+ 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...
  10. U

    SOLVED Subtract a specific word from a string

    Since I used enum item{} to make an inventory, the item names in the inventory are prefixed with "item.". I want to reap only this name. Because you have to create an objname for instance_create() so that the character will drop the item you used. I want to create "item_draw" this time, but the...
  11. U

    SOLVED Get/Do not get items

    Hello. I created an inventory that contains up to 4 items, referring to the blog here. Pressing the Enter key on an item removes it from the field and puts it in your inventory. Now, let's assume that four items are filled. This script finds a place where you can put an item and returns true if...
  12. U

    GML Objects corresponding to camera coordinates move slowly

    Good evening. I keep the location by making the inventory below track the position of the camera. However, when the character moves, it will move slightly because it will be slightly delayed. I filled in each of step, endstep, and beginstep, but it is still late. How can the inventory be...
  13. U

    SOLVED I want to make the enumerator correspond to the item sprite

    Hello. We are making an inventory. The image is a picture of the item used for inventory. I draw a picture every 64 pixels. I want to use draw_sprite(); according to the order of enumerators below. How can I make this sprite an enumerator? enum item{ none, draw_set, mirror, ball_w, ball_b...
  14. U

    How can I use an item?(resorved)

    When you get an item, add a picture of the item to dslist and put the item in your inventory. At the same time, add a variable that determines the usage of the item to another dslist. Clicking on an item to remove it from the dslist will remove the item's picture. At the same time, I decided to...
  15. U

    GML draw_GUI is not based on camera coordinates(Resorved!)

    Hello. I want to make a scope bar that displays the items that a character has below. Therefore, I would like to make a click decision within the range of the inventory frame. However, even if the click range is set in draw_GUI, it will be based on the room coordinates. what should I do? MOD...
  16. aristhemage

    GML Logic Help, the inventory is only going up once per item

    Hi all I am making a sandbox game with an inventory with 9 slots, when picking up an item it should look for an empty slot, or a slot where it has the same item. What it is doing is updating the inventory with the item, and unique items go into the next slot with nothing in it like it should...
  17. P

    Object IDs

    Hello, Basically I want to make a system in my game where when I press spacebar a cone in front of player appears and if some object is in front of the player and the cone touches it, it will be collected into inventory (and dissapears from the room). If I simplify what I mean by object lest say...
  18. XJ_Dan

    SOLVED Synchronizing equipped weapon animation with player animation

    Hello! After struggling, searching on google and YouTube all day I hope someone over here could help me out with this problem. I made an inventory system with a weapon slot (for a sidescroller RPG), once you put the weapon in the weapon slot if appears on the player. The weapon is an object...
  19. Logan Bevans

    Ds_Grid Help

    I don't know a whole lot about ds grids but found this awesome inventory system that uses ds grids, well to remove items from the inventory you run this script. [ //If there's only 1 item in the inventory if(ds_grid_height(playerInventory) == 1) { //Only 1 item in inventory...
  20. DarthTenebris

    GML Inventory System Design

    Hello everybody, I'm working on an inventory system for my game, and would like some ideas. I currently have an inventory for the player which is a ds_map, with 22 slots each also a ds_map. I plan on having several items, and am wondering what is the best way to approach it. The items are to be...
Top