Inventory?

Carbon2001Carbon2001 Member Posts: 8
edited November -1 in Working with GS (Mac)
I need help making an inventory. For example when you collect an item it appears in your inventory. I've been wondering how to do that. HELP PLEASE!

Comments

  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    Hi Carbon2001, I don't know if you're new to GS or have some game project experience? Inventories aren't the most straightforward things to make, and to give a good working explanation on the Forum might take up a bit of time anyhow to write, so don't know if anyone will give you a complete rundown.

    A short answer though to guide you in the right direction is that when a user presses on an inventory item in a scene, to change a boolean attribute (lets call it LadderTaken) from false to true. Maybe destroy the actor Ladder .In one of your inventory slots, put when LadderTaken is true, change image to Ladder.

    Then you have to do the Rules for using the items, and rules for putting them in any spare slot, rather than in fixed slots (if you want that), etc. A few more complications, it can get to be relatively hard work. you see what I mean about putting it all down in a forum comment.

    StormyStudio has an Inventory template for sale which would help you very much; can't find the link at the moment but sure someone else will help out there.

    Hope I've guided you in the right direction at least; good luck! :-)

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • Carbon2001Carbon2001 Member Posts: 8
    gyroscope said:
    Hi Carbon2001, I don't know if you're new to GS or have some game project experience? Inventories aren't the most straightforward things to make, and to give a good working explanation on the Forum might take up a bit of time anyhow to write, so don't know if anyone will give you a complete rundown.

    A short answer though to guide you in the right direction is that when a user presses on an inventory item in a scene, to change a boolean attribute (lets call it LadderTaken) from false to true. Maybe destroy the actor Ladder .In one of your inventory slots, put when LadderTaken is true, change image to Ladder.

    Then you have to do the Rules for using the items, and rules for putting them in any spare slot, rather than in fixed slots (if you want that), etc. A few more complications, it can get to be relatively hard work. you see what I mean about putting it all down in a forum comment.

    StormyStudio has an Inventory template for sale which would help you very much; can't find the link at the moment but sure someone else will help out there.

    Hope I've guided you in the right direction at least; good luck! :-)

    Thanks! But I'm a bit short on money right now, so I can't really buy anything.
  • SnowAppleMintSnowAppleMint Member Posts: 23
    I think this is something that most people wish to create in gamesalad. I find it rather difficult without the use of arrays. I think gyroscope gave you some good advice on how to go about creating an inventory. It is a ton of work. Just spend some time thinking about 'exactly' what you want the game to do. That will help you write out the rules you need.
  • rlehmrlehm Member Posts: 320
    a basic way, Create inventory artwork with empty slots. when your player presses on an inventory item in-game, destroy the image, and then have the image spawn at the location of its inventory slot.

    now you have added it visually to the inventory.

    next, create an attribute, and it will change when you get the item, from false to true, and when used, from true to false.

    if you have more inventory items than inventory slots, there will be a lot more to do than the above :)
Sign In or Register to comment.