User Tag List

Results 1 to 9 of 9

Thread: Naming the global values: a quick way?

  1. #1
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleSWF Export ModuleUnicode Add-on
    Boba Fonts's Avatar
    Join Date
    Jan 2009
    Location
    Northern Italy
    Posts
    228
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Naming the global values: a quick way?

    Is there any quick way to name a great number of global values from any sort of database/array/ini file? INI or INI++ could help to create not only values but even names for the global values, saving the uneasy effort of manually adding and naming them one by one?
    If I need to name the first ten, tweny or so globals it's easy to edit them in the Properties tab; but if I need to give a name to global 100, global 500, global 1050, etc. (each as a starting point for each character's series of global values) and all their following numbers (101, 102, 103, etc), I must click "New" to add new globals for hours until I reach the high numbers I need? :crazy:

  2. #2
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

    Join Date
    Jun 2006
    Posts
    6,773
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Naming the global values: a quick way?

    I'm afraid not - you could just access them directly from the data file by name instead of using global values in the first place?

  3. #3
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleSWF Export ModuleUnicode Add-on
    Boba Fonts's Avatar
    Join Date
    Jan 2009
    Location
    Northern Italy
    Posts
    228
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Naming the global values: a quick way?

    Mmh, I'm not sure I've understood what you mean

  4. #4
    Clicker Multimedia Fusion 2 DeveloperiOS Export Module
    Nifflas's Avatar
    Join Date
    Jul 2006
    Posts
    2,613
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Naming the global values: a quick way?

    This sounds dodgy. Don't use global values for this, use some associative array extension that can be global. There's no reason to specifically need to give a name to global value 500 or 1050 if you don't use up every single one before that number, unless you're solving a problem horribly wrong.

  5. #5
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

    Join Date
    Jun 2006
    Posts
    6,773
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Naming the global values: a quick way?

    Could you explain what you're trying to do in more depth?

  6. #6
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleSWF Export ModuleUnicode Add-on
    Boba Fonts's Avatar
    Join Date
    Jan 2009
    Location
    Northern Italy
    Posts
    228
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Naming the global values: a quick way?

    In my point and click adventure I have many many characters. I need all their values ready to be saved in every moment, regardless of which "room" we're in, regardless of whether that characters's active object has been created or not. Global values seemed the best way to store globally the room (frame) number a character is in, the X and Y coordinates, whether he's carrying or not a particular item in his inventory, if he has to be affected by scaling/illumination or not, his X and Y walking speed etc.: a great number of options for each character.
    First character: starting from Global 100, second one: starting from 200, etc.
    I wanted to set up the names of the globals in an easy way, in a .txt file, a .ini, a Excel sheet or whatever, avoiding the effort of changing names one by one in the Properties of MMF2.
    Now that idea of using an associative array instead of Global Values could be interesting; but can it be saved in a "Save Frame Position" action as efficiently as the globals? Can I "trust" it to handle all those values (and maybe strings, if I decide to use it for the objects descriptions)? A safe and trusty savegame feature is crucial for me.
    Boys, making a point&click adventure game is a nightmare without a tool such as Adventure Game Studio! But I love Multimedia Fusion and I want to succeed in that task, at all costs! :grin:

  7. #7
    Clicker Multimedia Fusion 2 DeveloperiOS Export Module
    Nifflas's Avatar
    Join Date
    Jul 2006
    Posts
    2,613
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Naming the global values: a quick way?

    I sounds like you just need a two-dimensional array, one dimension for each object, the second dimension for each object parameter. That, or use Ini++ and let each group identify the objects, and use the items as the object parameters. Look into the array extensions, check out all of them which can be global, and find out which that work with "Save Frame Position". The worst thing that can happen is that everytime you save the frame position, you'll also have to save the array in a separate file, and everytime you load the frame position you'll also have to retrieve the content of the array.

    That, or build your own savegame feature with any extension that you think will work (Ini++ is great)

    Making a point&klik adventure game shouldn't be a nightmare. You might just need some more practice using MMF2. Using Global Values is a dodgy solution in this case, I really don't recommend that.

  8. #8
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleSWF Export ModuleUnicode Add-on
    Boba Fonts's Avatar
    Join Date
    Jan 2009
    Location
    Northern Italy
    Posts
    228
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Naming the global values: a quick way?

    If I choose to use the INI++ can I compile it entirely in a text editor?

  9. #9
    No Products Registered

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

    Re: Naming the global values: a quick way?

    yes. ini is a readable and editable format so that also means your users will be able to edit its data. But if you went down this path you can do everythnig in notepad and then once everything works fine use the ini++ object and encrypt the data using blowfish encryption available using this extension.

Similar Threads

  1. Global Values & Alterable Values with same names
    By Gustav in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 7th November 2012, 06:15 PM
  2. Quick Global Values/Strings Question
    By CBSection31 in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 28th August 2010, 12:06 AM
  3. Negative values in a List, and Global Values
    By aidmm in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 20th January 2007, 06:08 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
  •