User Tag List

Results 1 to 9 of 9

Thread: How to set a condition: Alterable Value A = (-1 to 1)

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleUniversal Windows Platform Export ModuleSWF Export Module
    termojad's Avatar
    Join Date
    Mar 2014
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to set a condition: Alterable Value A = (-1 to 1)

    How to set a condition:
    Alterable Value A = (-1 to 1)

    ?


    -1 < A < 1

    For example, I need to calculate the situation in which the variable A is in the range enter values -1 <A <1

  2. #2
    Clicker Fusion 2.5Android Export ModuleSWF Export Module
    Ziplock's Avatar
    Join Date
    Oct 2013
    Posts
    448
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Use two conditions in the same event line

    If A > -1
    + If A < 1:
    -> Action

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleUniversal Windows Platform Export ModuleSWF Export Module
    termojad's Avatar
    Join Date
    Mar 2014
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you! It helped!

  4. #4
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export Module

    Join Date
    Feb 2014
    Posts
    1,055
    Mentioned
    29 Post(s)
    Tagged
    1 Thread(s)
    wow, thats super useful! always wondered how that command worked, (stop being so useful snail )

  5. #5
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleMac Export Module
    dsilvers's Avatar
    Join Date
    Jun 2008
    Location
    Boston, MA
    Posts
    658
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)
    Is there a difference between Range() and RRandom()? I've been using RRandom() a lot and love it!

  6. #6
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleMac Export Module
    dsilvers's Avatar
    Join Date
    Jun 2008
    Location
    Boston, MA
    Posts
    658
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)
    Oh gotchya! I've mostly been using it for screen and object shake, which I don't intend to change. It's actually very useful for that, telling Fusion to randomly move an object between this many pixels left or right, or up or down, on any given frame. It's cut my screenshake code from like 4 lines to 1.

  7. #7
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleMac Export Module
    dsilvers's Avatar
    Join Date
    Jun 2008
    Location
    Boston, MA
    Posts
    658
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)
    Oh haha no I'm using it as an action, not a condition. As a condition, yeah I can't think of a situation where it wouldn't be cleaner to use Random() or Range(), even if you're using it say to detect how far the screen has shook, for instance.

  8. #8
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleMac Export Module
    dsilvers's Avatar
    Join Date
    Jun 2008
    Location
    Boston, MA
    Posts
    658
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)
    Challenge accepted!

  9. #9
    Clicker Fusion 2.5
    Del_Duio's Avatar
    Join Date
    Sep 2008
    Location
    Cygnus X-I
    Posts
    944
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Snail View Post
    You can also use Range().

    -Alterable value A = Range(Alterable value A, -1, 1)
    HOLY CRAP WHEN WAS THIS ADDED???

    Has there always been a Range command? I've been doing multiple lines of if this is greater than that and is also less than this forever. This is GREAT.

Similar Threads

  1. Alterable Strings as Alterable Values?
    By King_Cool in forum Multimedia Fusion 2 - Technical Support
    Replies: 9
    Last Post: 27th March 2012, 07:14 PM
  2. Alterable Strings and Alterable Values limit :(
    By Pedro Almeida in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 13th October 2006, 06:38 AM
  3. Alterable Value and Alterable String conflict
    By Patrick in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 28th September 2006, 02:51 PM
  4. Alterable Value & Alterable String BUG!!
    By Patrick in forum Multimedia Fusion 2 - Technical Support
    Replies: 9
    Last Post: 20th September 2006, 01:40 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
  •