User Tag List

Page 1 of 3 1 2 3 LastLast
Results 1 to 10 of 26

Thread: Saving Game.

  1. #1
    No Products Registered

    Join Date
    May 2009
    Posts
    51
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Saving Game.

    I am using the Ini object.

    I understand how to save position and counters.
    I CAN get it to save.

    The only problem is i can only do that in one frame.
    My game will have several frames
    Possibly over 30.

    I want a title screen that can load the game and go to the frame last saved on.
    I cant just use the "go to next frame"


    So does anyone have enough experience with the Ini to show me how to load to the last frame saved at.

    Also my game isn't finished so i can't give you the file to work with.

  2. #2
    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: Saving Game.

    You can give the "Jump to frame" action an expression - you can use this to take the number out of the INI. If a part of your INI looked like this:

    [SaveGroup]
    Level=94

    ...then you could use the GroupItemValue() expression to get the value out of group SaveGroup and item Level. (When you save the game, you could set this item to the current frame number, which I think might be just frame in the expression editor (it'll be in the storyboard controls expressions).

  3. #3
    No Products Registered

    Join Date
    May 2009
    Posts
    51
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Saving Game.

    Okay I think i get what you are saying.

    Correct me if i'm wrong [which i probably am.].

    So you would create group
    create item and set value to the current frame number

    and that takes care of the saving
    so when you load....

    Jump to frame
    GroupItemValue( "Ini", >Group name<, >Item name<)
    With item name being the current frame?


    I think i am wrong.



  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: Saving Game.

    NO:
    [SaveGroup]
    Level=57

    Then use jump to frame
    GroupItemValue( "Ini", "SaveGroup", "Level")
    Working as fast as I can on Fusion 3

  5. #5
    No Products Registered

    Join Date
    May 2009
    Posts
    51
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Saving Game.

    So by level you men the frame?
    And you just put it the number of the current frame?

    by 57 you mean frame 57?

  6. #6
    No Products Registered

    Join Date
    Mar 2007
    Location
    Sydney, Australia
    Posts
    1,369
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Saving Game.

    yep

  7. #7
    No Products Registered

    Join Date
    May 2009
    Posts
    51
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Saving Game.

    It didnt work.


    On the save frame i have the X and Y save
    and the frame be saved.

    On the menu i have "jump to frame"
    with GroupItemValue( "Ini", "SaveGroup", "Level")

    and nothing happened.

  8. #8
    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: Saving Game.

    Copy & Paste the contents of the INI file so we can see why.
    Working as fast as I can on Fusion 3

  9. #9
    No Products Registered

    Join Date
    May 2009
    Posts
    51
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Saving Game.

    heres my file
    http://rapidshare.com/files/263825594/JablesAdventure.mfa.html

  10. #10
    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: Saving Game.

    First off, you need to set the INI file to your INI file with the data. Add this event:
    Start of frame: Set current INI file to "data.ini"
    to every frame that uses the INI object. You cannot use any INI object expressions, conditions, or actions until you tell the object what file you want it to use.
    Working as fast as I can on Fusion 3

Page 1 of 3 1 2 3 LastLast

Similar Threads

  1. saving objects and the whole game
    By NussMichel in forum Android Export Module Version 2.0
    Replies: 7
    Last Post: 19th August 2013, 09:56 PM
  2. Saving game in a file
    By qenio in forum SWF/Flash Export Module Version 2.0
    Replies: 5
    Last Post: 25th June 2010, 02:34 AM
  3. Saving game?
    By delta9857 in forum The Games Factory 2 - Technical Support
    Replies: 2
    Last Post: 30th November 2009, 12:20 AM
  4. Saving, In Game
    By Hazzow in forum The Games Factory 2 - Technical Support
    Replies: 6
    Last Post: 11th June 2009, 02:09 PM
  5. Need help with saving a game!
    By Annsoft in forum The Games Factory 2 - Technical Support
    Replies: 3
    Last Post: 3rd January 2008, 06:46 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
  •