A Flash Developer Resource Site

Results 1 to 8 of 8

Thread: Inventory in Game

  1. #1
    Member
    Join Date
    Nov 2006
    Posts
    79

    Inventory in Game

    Hi all,
    What would be the best way to save an inventory for the player and the details on how the items interact with each other on a isometric flash game while keeping in mind of adapting it with multiplayer abilities in the future
    ?

    So basiaclly i want to know the best way to save data on a isometric flash game.

    Thanks!!!

  2. #2
    Hype over content... Squize's Avatar
    Join Date
    Apr 2001
    Location
    Lost forever in a happy crowd...
    Posts
    5,926
    Do you mean in terms of sharedObjects, or just storing it within the game ?

    If in game, just shove it into an array. If you search there are dozens of threads about inventories, it goes with the world and his dog wanting to code an rpg

    Squize.

  3. #3
    Member
    Join Date
    Nov 2006
    Posts
    79
    Quote Originally Posted by Squize
    Do you mean in terms of sharedObjects, or just storing it within the game ?

    If in game, just shove it into an array. If you search there are dozens of threads about inventories, it goes with the world and his dog wanting to code an rpg

    Squize.
    thanks. ill check the threads out. BTW - i meant to save the data so that when the player exits - the data is srored and can be loaded again when the player wants to continue the game.

  4. #4
    Member
    Join Date
    Nov 2006
    Posts
    79
    Hi all.
    I was wondering if sumone could point me in the right direction on making an inventory. i know a bit of AS and if someone could help me on the general idea of the working of a good inventory system it would be much appreciated. I searched the forum for info (maybe i didnt search hard enough) but couldnt find what im looking for.

    Thanks!!
    Last edited by quddusaliquddus; 11-29-2006 at 05:40 PM.

  5. #5
    Student
    Join Date
    Apr 2001
    Location
    -
    Posts
    4,756
    hmm in any case it would make sence to be able to handle array´s as they are propapbly the best method storing multiple itmes. So you could search for that in the flash help (wich is always very helpfull).
    Once you have the idea of what arrays can do for you you need an idea of how & what you need to store (object, kind, properties,...).

    on a sidenote:
    anyone ever thought about using items that can vanish in realtime just like they did in metal gear solid 3 snake eater?- because you could collect snakes but if you happen to turn off your PS2 and start the game a few days later Snake would get sick by eating the snakes as they were already rotten.
    One way to do this would be to save each time a timestamp of the system in the savestate and compare it if you load the savestate with the current time. That way one could create inventory items that rotten or vanish after a to long time of replay.

  6. #6
    Member
    Join Date
    Nov 2006
    Posts
    79
    Quote Originally Posted by renderhjs
    hmm in any case it would make sence to be able to handle array´s as they are propapbly the best method storing multiple itmes. So you could search for that in the flash help (wich is always very helpfull).
    Once you have the idea of what arrays can do for you you need an idea of how & what you need to store (object, kind, properties,...).

    on a sidenote:
    anyone ever thought about using items that can vanish in realtime just like they did in metal gear solid 3 snake eater?- because you could collect snakes but if you happen to turn off your PS2 and start the game a few days later Snake would get sick by eating the snakes as they were already rotten.
    One way to do this would be to save each time a timestamp of the system in the savestate and compare it if you load the savestate with the current time. That way one could create inventory items that rotten or vanish after a to long time of replay.
    thanks. ill look up arrays right away.

  7. #7
    Hype over content... Squize's Avatar
    Join Date
    Apr 2001
    Location
    Lost forever in a happy crowd...
    Posts
    5,926
    "i meant to save the data so that when the player exits"

    Then you'll need to use sharedObjects, which are like cookies for Flash. Look up the Flash help for info on them, it's pretty detailed and it's a straight forward thing to use.

    Surprised your search for inventories didn't bring up anything useful, I know nGFX did a really good example quite a while back.

    Squize.

  8. #8
    Member
    Join Date
    Nov 2006
    Posts
    79
    Quote Originally Posted by Squize
    "i meant to save the data so that when the player exits"

    Then you'll need to use sharedObjects, which are like cookies for Flash. Look up the Flash help for info on them, it's pretty detailed and it's a straight forward thing to use.

    Surprised your search for inventories didn't bring up anything useful, I know nGFX did a really good example quite a while back.

    Squize.
    ill look up nGFX and see what he wrote. thanks again

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center