-
Thanks a lot oruga that was the problem! I'm such a noob I don't know about the little details.
Now with the solution you suggested earlier, do you need to be able to use arrays in order to pick up an item and position it in the menu depending on the order in which you picked them up? If you understand any of that?
I don't know anything about arrays sadly
-
if you are gonna use a file to save the inventory items you have taken you need arrays or INI to store the data.
To be totally honest with you, if you are just learning I think an inventory is more of an advanced thing and I don't recommend you just copy and paste examples, you gotta understand what you are doing and how everything works and it may be too much information to absorb. Slowing down would be a good idea and just starting by making something more simple and build it up from there.
You are probably better off using INI this time, that's less complicated. When you pick up an item just write on your INI item1=1 now on your inventory sub-application check all items from your INI, if they are >0 then you make them appear or create them. You gotta check them on your game frame too, so if you have taken item1 destroy it so the player can't take it again.
-
Well all I need the inventory to do is store 2 items and then combine them to make a new item so it's not overly complex :) there just seems to be a lack of material for specifically what I need. I will have a look into INI's thanks
-
Are you coding in the sub-application frame? Yes, make sure you have done as oruga said.
Marv
Edit: Great, you fixed it.