User Tag List

Results 1 to 2 of 2

Thread: Best way to globally store lots of bools?

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Nov 2010
    Posts
    75
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Question Best way to globally store lots of bools?

    Sorry to post another question thread, but it's hopefully not a big question this time. Got a minigame I'm working on that's due this Friday. There's multiple rooms and lots of coins that I'd like to only be collectible once.

    I figured when loading the level is done I'd spread a value through each coin in the room to give them an ID of sorts, then check a list of bools/flags to see if each coin was collected and destroy them if so. Then if you collect a coin it'd turn on bool number alt value A so if you return it'd not reappear. Then each room would have a small ID number that decides which bool list to use.

    Problem is, I don't know the best way to have such lists. I could use a generic array type object, but if I've got 200 or 300 coins total, that's 300 integers constantly in the memory isn't it? Meanwhile, Global Store X can store enough Bools, but I'm not sure how to separate each batch of coins without constant saving them to the disk every time the player exits a room, which seems silly for a minigame that otherwise doesn't save.

    To summarize: I want to store a few sets of giant bundles of flags/bools in the memory globally to keep track of each room's collected coins. Or should I take the hit and just use an array instead?

  2. #2
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export ModuleXNA Export Module
    ProdigyX's Avatar
    Join Date
    Jan 2011
    Posts
    1,197
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    It'll be easier on you're part to go with the array.

    Specifically, when a coin is collected, save its fixed value to the array in the next position (if all the coins are created during edittime). Then when you reload the frame, check all the positions of the array. If you find a fixed value in the array, that means its be collected once and you can delete it next time

Similar Threads

  1. Lots o crashes
    By SirEatAlot in forum Android Export Module Version 2.0
    Replies: 11
    Last Post: 20th September 2012, 11:18 PM
  2. Lots of objects with lots of counters set to their positions...
    By ratty in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 14th July 2012, 01:45 PM
  3. Using named alterable values globally
    By Digitalic in forum Multimedia Fusion 2 - Technical Support
    Replies: 22
    Last Post: 14th June 2010, 08:01 PM
  4. Getting Lots of Crashes
    By FoxBlitzz in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 16th August 2006, 01:47 PM

Posting Permissions

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