User Tag List

Results 1 to 5 of 5

Thread: Question about Flags and the Flag Object

  1. #1
    Clicker Multimedia Fusion 2
    Gullyking's Avatar
    Join Date
    Dec 2009
    Location
    In the darkest recesses of the woods.
    Posts
    73
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question about Flags and the Flag Object

    I was just wondering 'How many flags can an object have?' And also, the FLAG OBJECT: is it global? It would greatly increase the ease at creating my project, if it were. If not, I guess I'll create an 'active' global object and just use the flags from it. I'm assuming the number I'll need is somewhere in the hundreds.

  2. #2
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleSWF Export ModuleUnicode Add-on
    Looki's Avatar
    Join Date
    Aug 2006
    Location
    Karlsruhe, Germany
    Posts
    3,741
    Mentioned
    5 Post(s)
    Tagged
    1 Thread(s)

    Re: Question about Flags and the Flag Object

    32. I don't think it's global but I never really used it.

  3. #3
    Forum Moderator

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator Pro
    nivram's Avatar
    Join Date
    Jul 2006
    Location
    Bandon, Oregon
    Posts
    6,773
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)

    Re: Question about Flags and the Flag Object

    Why don't you setup a 2 frame application and test the flag object to see if it carries over to the next frame.

    Marv
    ​458 TGF to CTF 2.5+ Examples and games
    http://www.castles-of-britain.com/mmf2examples.htm

  4. #4
    Clicker Multimedia Fusion 2
    Gullyking's Avatar
    Join Date
    Dec 2009
    Location
    In the darkest recesses of the woods.
    Posts
    73
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Question about Flags and the Flag Object

    Good idea, Nivram. I'll check it out. I don't see a global check box in the properties of the object.

    I don't normally use it either. However, I've created games with the RPGMaker before, perhaps you've heard of it. At any rate, it has a system known as 'switches' which come in two types, one of which is global. The flag part of MMF2 reminds me a lot of this system and I was thinking I could implement them much the same.

  5. #5
    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: Question about Flags and the Flag Object

    You can use Global Values and turn on/off each of the individual 32 bits in them:

    AND is the bitwise 'and' operator, it checks two numbers, ie:
    11010010
    01000101
    and then gives you a resulting number with only the bits on that were on in both:
    01000000

    OR is the bitwise 'or' operator, and it basically turns on the bits from both numbers, ie:
    11010010
    01000101
    would give you:
    11010111

    Say you have a Global Value called Flags that will have many bits set (Global Values, as long as they are integers, can have 32 bits), and you want to get/set individual bits. First, lets say you want to turn on bit X:
    Set Flags to Flags OR (2 pow
    To Check if bit X is turned on:
    (Compare Two General Values) Flags AND (2 pow > 0

    X should be a number between 0 and 31.

    That's mostly it. If you want more information on why and how this works, just ask.
    Working as fast as I can on Fusion 3

Similar Threads

  1. Question of the global object maintain value and flag
    By ASD in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 17th July 2013, 05:27 PM
  2. Last object has been destroyed with a flag on
    By Corlen in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 22nd May 2011, 12:27 AM
  3. Internal Flags question
    By Warmachine in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 26th January 2010, 11:39 PM
  4. Icon All User Flags Question
    By droberson in forum Install Creator and Patch Maker
    Replies: 2
    Last Post: 10th July 2009, 03:23 PM
  5. flag values question
    By LazyCoder in forum Multimedia Fusion 2 - Technical Support
    Replies: 11
    Last Post: 6th September 2006, 03:23 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
  •