User Tag List

Results 1 to 4 of 4

Thread: Global Value initial value with ini

  1. #1
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperHTML5 Export ModuleiOS Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)Universal Windows Platform Export Module (Steam)
    ratty's Avatar
    Join Date
    Apr 2012
    Posts
    1,107
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Global Value initial value with ini

    With active objects, I typically just go to properties and set their alterable values to the initial values I want (if they're not zero). Is there a way to do that with Global Values? I am using them for settings in my iOS app but them starting on 0 is throwing things off. Any ideas?

  2. #2
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    mobichan's Avatar
    Join Date
    Oct 2007
    Location
    Buffalo, NY
    Posts
    3,254
    Mentioned
    25 Post(s)
    Tagged
    0 Thread(s)
    You do that in the Values tab for your project (click the top level in the workspace toolbar). Just set the values there like you do with Active Objects. If you need them to be stored and changed from the defaults each time you load up the game, you can try using an ini file to store and load the values.

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module

    Join Date
    Aug 2011
    Location
    Beverly Hills, CA USA
    Posts
    506
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Here's a sample of how I do it for all of my apps which you are free to reuse:

    https://dl.dropbox.com/u/32296241/Se...%20startup.mfa

    It creates an INI if it doesn't exist with default values and loads the existing settings if it does.

  4. #4
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperHTML5 Export ModuleiOS Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)Universal Windows Platform Export Module (Steam)
    ratty's Avatar
    Join Date
    Apr 2012
    Posts
    1,107
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Thanks guys!

Similar Threads

  1. INI initial save and IOS
    By GameMaker2019 in forum iOS Export Module Version 2.0
    Replies: 6
    Last Post: 18th February 2013, 08:34 AM
  2. Initial Global Values?
    By ratty in forum iOS Export Module Version 2.0
    Replies: 1
    Last Post: 2nd July 2012, 05:02 AM
  3. Initial # of Lives is missing
    By Webster in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 17th June 2008, 08:26 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
  •