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!
You can do that as long as item_slot[n] holds a valid object index or an instance ID whose correspoing instance exists at the time of code execution. Read more about it here:
But I guess you want to look into 2D arrays whose first dimension would represent the item and second dimension(s) would hold information related to that item. For instance:
Code:
item_slot[0, 0] = "Sword"; //Name of the item
item_slot[0, 1] = spr_sword;
and my actual problem is.. if the inv_slot[n] (its object_weapon1 or whatever) isnt somewhere in the room on the floor it just shows error but it normally works if the item is somewhere randomly in the room used.. If I could fix that my inventory system would work great^^
nevermind im doing the inventory system othert way cuz since i was only drawing sprites there wouldnt be a possibility to click on em or smth.. my bad few hours of life lost XD np atlest I learn^^ but ty for ur advices boyyz