User Tag List

Results 1 to 5 of 5

Thread: Inventory?

  1. #1
    Clicker Fusion 2.5 DeveloperSWF Export Module

    Join Date
    Jun 2006
    Location
    Turku, Finland
    Posts
    1,023
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Inventory?

    Hello, I've tried to create a pretty simple inventory, but I can't find a way to do it. First of all, you should be able to buy and sell the inventory slots. Then, from another frame, you should be able to buy some stuff into the inventory, of course. The stuff from the inventory could also be sold again. And, I should be able to save all the obbjects/slots in the inventory, and load them again when I restart the app. Suggestions?

  2. #2
    No Products Registered

    Join Date
    Oct 2006
    Location
    Uruguay
    Posts
    87
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Inventory?

    You could use an array... make it global... and then everytime you put something in it... you assign a unique code to that array...
    And everytime the frame starts, you check for the values in that array and show the objects you want...

    Did I explain myself??

  3. #3
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

    Join Date
    Jul 2006
    Location
    Pittsburgh, PA, USA
    Posts
    777
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Inventory?

    Wouldn't you need a ini file?

  4. #4
    Forum Moderator Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export ModuleSWF Export Module
    DavidN's Avatar
    Join Date
    Jun 2006
    Location
    Boston, MA, USA
    Posts
    4,044
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Inventory?

    INI, XML, array, list, anything.

  5. #5
    No Products Registered

    Join Date
    Jul 2006
    Posts
    130
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Inventory?

    you should use an array wich would be like this:


    x=1 obj type X=2 number of obj
    Y=1 PP7 munitions 8
    y=2 M41 munitions 35
    y=3 etc... etc...

    then you use fast loops and you make an algorithm that find if a place is empty and put an object in the right Y axis

    (sorry if you don't undertsand me but i'm not english so that's not realy easy to explain that kind of stuff ^^, anyway I use that on a RPG I'm creating so it does work)

Similar Threads

  1. inventory help
    By Oreo in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 24th January 2009, 04:29 PM
  2. Inventory Box?
    By Ikonz101 in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 13th August 2007, 09:00 AM
  3. Inventory
    By Ravenius in forum Multimedia Fusion 2 - Technical Support
    Replies: 43
    Last Post: 10th July 2006, 10:37 AM

Posting Permissions

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