User Tag List

Results 1 to 4 of 4

Thread: Loading list based level files

  1. #1
    Clicker Fusion 2.5SWF Export Module
    Fusion 2.5 (Steam)

    Join Date
    Dec 2007
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Loading list based level files

    This is currently driving me crazy, I've looked everywhere on the forums, hopefully someone will have an answer for this.

    I'm using the list object to load external .txt delimited levels for the game I'm working on. Everything works when run through MMF2 but when it's exported to swf and run through a web browser the level files don't load. Currently I'm just using ./ to reference the same folder that contains the executable, I'm guessing this won't cut it for the swf/web version.

    The official line on swf appears to be that it can't load/save files but some community created extensions appear to have gotten around this. I eventually want to put this up on Mochi which accepts a zip file with the swf and additional files which would mean that the swf would have to reference them dynamically.

    So is it possible to make the list object work in the way I've described above, and if not how are other people storing level content for their swf games?

    I was really happy after creating a working level editor for my game so I'm hoping the effort wasn't wasted.

    Thanks in advance for any advice,

    Cheers,

    Dave

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    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
    Apr 2007
    Location
    Australia
    Posts
    1,152
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Loading list based level files

    do you have to import the text files? you could just store the information in list files internally to the swf, then update the swf via mochi when you add any new levels later on.

  3. #3
    Clicker Fusion 2.5SWF Export Module
    Fusion 2.5 (Steam)

    Join Date
    Dec 2007
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Loading list based level files

    Thanks for the reply RhysD, that's a good idea. Shouldn't be too much trouble to convert the level editor and game engine to support an internal pre-populate list.

    I'm still curious on how others are creating and storing their levels, especially once they have been uploaded to the internet.

  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: Loading list based level files

    I've switched to using List objects for level storage in Flash, mostly (just using the initial content of the list box rather than loading it from an external file when the game is started), though getting them from an online database would be appropriate as well depending on the complexity and length of the data.

    I wonder, though, if it would work if you used the "Binary data" tab of the data editor to add the external files? I'm not sure how this is implemented in Flash, if it is at all.

Similar Threads

  1. Loading files such as INI,Text files, List Files?
    By Gibbon in forum SWF/Flash Export Module Version 2.0
    Replies: 3
    Last Post: 21st July 2012, 06:41 AM
  2. Level-loading tutorial?
    By Namida in forum Multimedia Fusion 2 - Technical Support
    Replies: 15
    Last Post: 20th February 2010, 07:18 AM
  3. Character-Based Level System
    By LB in forum File Archive
    Replies: 1
    Last Post: 4th May 2008, 12:17 AM
  4. List object - loading File List
    By Nathan in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 9th March 2008, 09:11 PM
  5. Tile-based level editor
    By Gabriel in forum File Archive
    Replies: 9
    Last Post: 7th March 2007, 08:17 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
  •