User Tag List

Results 1 to 7 of 7

Thread: Load/Saving trouble

  1. #1
    Clicker Fusion 2.5 DeveloperiOS Export Module

    Join Date
    Dec 2008
    Posts
    101
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Load/Saving trouble

    I need to make it so that my game can:

    1. Allow the user to pick a directory and a filename.
    2. Save the frame of the application into that file.
    3. Let the user select that file from a directory at a later time, and send the player to that frame.

    What is the best way to do this? I'm hopelessly lost.

  2. #2
    Clicker Fusion 2.5
    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)
    JimJam's Avatar
    Join Date
    Jun 2006
    Location
    USA
    Posts
    353
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Re: Load/Saving trouble

    I think the File Object might be your friend here. It basically has all the options for moving, creating, deleting, and changing files and folders.

    I don't think most game players would appreciate having to manually search their computer for their save data that they may have arbitrarily named something stupid (like "crap" or "thing," I have tons of files named "crap" on my computer).

    Personally, when I make games save, I have them save into a dedicated directory relative to the game. Something like "C:\*my game*\Saves\save1.sav" and just use Numbers to make save slots.

    This also makes handling saves easier for you because you only have to look at one folder, and don't have to remember where your user may have saved his save game on his machine.

  3. #3
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleSWF Export Module
    Konidias's Avatar
    Join Date
    Aug 2009
    Posts
    1,546
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    Re: Load/Saving trouble

    File Object is the way to go. Just make sure that if a directory doesn't exist, you create it with the File object first. Don't try saving stuff to directories that don't exist, or it will do nothing. (though it would probably be nice if it just created the directory automatically, it doesn't do this)

  4. #4
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Re: Load/Saving trouble

    Just FYI, the file object doesn't actually let you save information. It's just good for the file selector and the file/directory actions/conditions/expressions.
    Working as fast as I can on Fusion 3

  5. #5
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleSWF Export Module
    Konidias's Avatar
    Join Date
    Aug 2009
    Posts
    1,546
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    Re: Load/Saving trouble

    Ah right, I'm thinking of the INI object working with the File object.

    But yeah, definitely need to still create the directory before trying to work in it with other extensions.

  6. #6
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Re: Load/Saving trouble

    You should use the Sphax File-Folder object for making directories, the File object is quite a hassle.
    Working as fast as I can on Fusion 3

  7. #7
    Clicker Fusion 2.5 DeveloperiOS Export Module

    Join Date
    Dec 2008
    Posts
    101
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Load/Saving trouble

    I resolved this issue on my own. Thanks anyway.

Similar Threads

  1. Box 2D trouble
    By Kalis in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 26th June 2011, 10:23 AM
  2. Having Trouble With INI's
    By Damian_Fox in forum The Games Factory 2 - Technical Support
    Replies: 3
    Last Post: 30th June 2008, 05:43 PM
  3. RTF Trouble
    By DeepGames in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 29th September 2006, 04:19 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
  •