User Tag List

Results 1 to 5 of 5

Thread: Calculating a range of global Values

  1. #1
    No Products Registered

    Join Date
    May 2016
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Calculating a range of global Values

    anybody got an idea of how to calculate if a range of global values has the same number in an event?
    what i mean is that i have 3 diferent global values, i want to make an event that if one in the range of those 3 has lets say, 2, then the event happens.
    like
    ++ A or B or C = 2
    - event happens

    *i've tride the "or" command but it doesnt seem to work.

  2. #2
    Clickteam Clickteam
    Danny's Avatar
    Join Date
    Aug 2007
    Location
    United Kingdom
    Posts
    2,997
    Mentioned
    19 Post(s)
    Tagged
    2 Thread(s)
    It should with OR (logical)...

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    Popcorn's Avatar
    Join Date
    Jun 2006
    Location
    Norway, Bergen
    Posts
    2,336
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    If I understand you correctly, use OR (logical)

    +A = 2
    +OR (Logical)
    +B = 2
    +OR (Logical)
    +C = 2
    - Event happens

    This will execute the event if either A, B or C is 2.

  4. #4
    No Products Registered

    Join Date
    May 2016
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    it doesnt seem to work the way i intended, i should have mentioned that there are more conditions to my event. it goes something like this

    +pressed fire 1
    +"player" is overlapping "door"
    +A or B or C = 2
    -"door" change animation "open"
    - set A or B or C to 0

  5. #5
    Clickteam Clickteam
    Danny's Avatar
    Join Date
    Aug 2007
    Location
    United Kingdom
    Posts
    2,997
    Mentioned
    19 Post(s)
    Tagged
    2 Thread(s)
    Then you need to do:

    +Condition1
    +Condition2
    +A = 2
    (OR) Logical
    +Condition1
    +Condition2
    +B = 2
    (OR) Logical
    +Condition1
    +Condition2
    +C = 2

Similar Threads

  1. cant write an arrays values to global values
    By Rebel in forum Fusion 2.5
    Replies: 3
    Last Post: 10th March 2016, 02:24 PM
  2. 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
  3. testing a range of values
    By Atherton in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 15th December 2009, 10:26 AM
  4. set global value range
    By rhoymand in forum Multimedia Fusion 2 - Technical Support
    Replies: 12
    Last Post: 4th December 2006, 04:16 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
  •