#11, by Marian77Tuesday, 13. May 2014, 20:43 11 years ago
Ok,
I got my inventory working! I can take the Hammer and it appears in my inventory! Just two problems remain:
1.) Since I have my backgrounds kind of "inverted", I have to place empty spaces where I take items. To be more precise: My basic background images already do contain all the items that can be taken away. So if I take something, I have to place a small picture with the Item already missing on the right place of the background. For example, I have an emergency Hammer in my arrest cell and I created an object called emergency_hammer_gone showing the holder with the hammer missing. I defined the outlines of the hammer on this object and placed it on the right spot on the wall. When I run the game and the condition of the object is true, I see the hammer missing, but since this object contains the outline, I can select it and pick it up, the hammer appears in my inventory. Would be perfect if I had used the standard way. But like this it makes no sense, because I can't see the hammer and pick it up anyway. If I set the condition to false, then the game starts correctly, showing the hammer on the wall (empty space is hidden), but like this I can not select the hammer or pick it up. Can I do anything about it or is it easier to just redo the backgrounds with all objects that can be taken away missing?