Sorry matey. I tried to modify it as little as possible. If you download the code again you'll be able to pick up keys. Space will open/close the inventory.
You have to call InvItem_Create(obj,weight,p.player,image,frame) when you want to pick up an object. It's all in this version, so you can only pick up keys.
You have to call InvItem_Create(obj,weight,p.player,image,frame) when you want to pick up an object. It's all in this version, so you can only pick up keys.