User Tag List

Results 1 to 4 of 4

Thread: Easy way to Save/Load a Global Value?

  1. #1
    No Products Registered

    Join Date
    Nov 2014
    Location
    Ohio
    Posts
    34
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Easy way to Save/Load a Global Value?

    In my game's main menu, it checks for a global value. When it is above a certain number, buttons to access unlocked levels appear.

    It works great, but how do I have this Global Value Save/Load for when I come back to play some more?

  2. #2
    Clickteam Clickteam
    Jeff's Avatar
    Join Date
    Jun 2006
    Location
    Battle Ground Washington
    Posts
    11,817
    Mentioned
    6 Post(s)
    Tagged
    2 Thread(s)
    You could save it in an INI file and then reload it when the app starts back up.

    There is a great INI tutorial here: http://www.clickteam.com/creation_materials/tutorials/download/ini_tutorial.pdf

  3. #3
    No Products Registered

    Join Date
    Nov 2014
    Location
    Ohio
    Posts
    34
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    @Jeff Thanks! I have tried both the INI and Array Objects, and still haven't had success with either.
    Right now, when I beat a level 1, my game will set "Global Value Z" to "1". When Global Value Z is 1 or higher, a button appears.
    What I want is just for this Global Value Z to save and load. I'll keep looking through guides, maybe I'll get this figured out.

  4. #4
    Clickteam Clickteam
    Jeff's Avatar
    Join Date
    Jun 2006
    Location
    Battle Ground Washington
    Posts
    11,817
    Mentioned
    6 Post(s)
    Tagged
    2 Thread(s)
    For fun --
    Step 1 -- Open the INI file you created and see if the value has been saved correctly

    If it is ---
    Step 2 -- Inside Fusion read the INI file and display the data in an edit box
    Then you see if the data is getting retrieved correctly.

    If your like me sometimes you just need to go see things visually to make sure they are working right while your trying to build something.
    So I do things like displaying data in edit boxes and counters to make sure I am getting the data I need/expect before I use it in "invisible" holders like alterable values.

Similar Threads

  1. .Ini Load and Save Global Values
    By Sparckman in forum Guides, Tutorials, Examples, Widgets
    Replies: 4
    Last Post: 28th January 2014, 05:17 AM
  2. Save / Load Global Values to an INI File
    By Danny in forum File Archive
    Replies: 3
    Last Post: 16th January 2013, 11:33 PM
  3. an Easy Ini save value load value example?
    By path in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 2nd June 2012, 10:19 AM
  4. save down around 1000 global values and load them?
    By dyxeldoff in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 17th March 2011, 09:14 AM
  5. can INI+ be global between subapps sans save/load
    By BrashMonkey in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 17th October 2009, 01:29 AM

Tags for this Thread

Posting Permissions

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