How to carry over the inventory to the next scene

pazappapazappa Member Posts: 7
edited November -1 in Working with GS (Mac)
I have used an inventory system, learned from this forum. ( http://gamesalad.com/forums/topic.php?id=13397#post-103695 ).
And that works when used in one scene, but if I go on the the next scene how do I carry the inventory along?

Comments

  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    Hi pazappa, one way is to have every one of your inventory items on-screen but out of screen view, positioning them in place when they are "found" i.e when a certain boolean attribute is true - and put back when they are used. This seems like it would take up extra file size, but in fact it doesn't, only the first set does. Bit of a sketchy explanation but I'm sure you'll get it working OK.

    Ideally, when the first scene where all of the inventory items are put on screen to the side is done, it's easy to duplicate them by copying and pasting (or alt-dragging) scenes in the Project window. (This is assuming you're starting the game from scratch).

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

  • pazappapazappa Member Posts: 7
    Hi gyroscope,
    Thanks! The copy, paste solution seems like a good way to go!

    By "positioning them in place when they are "found" i.e when a certain boolean attribute is true" - do you recommend doing this by changing color alpha to 1/0? Or Move to?
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    Neither if they're already been placed in the inventory; I'd recommend using Position.x and y in that case, to put them immediately in place upon entering the scene. Remember, if you're making an adventure game, and you can "roam" to any scene you like, that you make sure you use Save Behaviors when leaving a scene (of the particular "live" items x and y coordinates) and Load on entering a scene to place them again.

    It can get quite tangled; adventure games are not easy to do! Good luck with it.

    :-)

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

Sign In or Register to comment.