User Tag List

Results 1 to 4 of 4

Thread: proper way of putting this in an event

  1. #1
    Forum Moderator

    Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleMac Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)
    Perry's Avatar
    Join Date
    Dec 2013
    Location
    Watertown, WI
    Posts
    4,380
    Mentioned
    57 Post(s)
    Tagged
    0 Thread(s)

    proper way of putting this in an event

    if I want this in an event

    if A >=1 and <= 3
    if B >=1 and <= 3
    if C >=1 and <= 3
    + string "Success"

    it the only way I can do it is like this?

    if A>=1
    if A<=3
    if B>=1
    if B<=3
    if C>=1
    if C<=3
    + string "Success"

    or is there a better way ?

  2. #2
    Forum Moderator

    Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleMac Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)
    Perry's Avatar
    Join Date
    Dec 2013
    Location
    Watertown, WI
    Posts
    4,380
    Mentioned
    57 Post(s)
    Tagged
    0 Thread(s)
    hmm, how do I use it? is <value> the result

  3. #3
    Clicker Fusion 2.5Fusion 2.5+ DLC
    casleziro's Avatar
    Join Date
    Mar 2013
    Location
    United States
    Posts
    662
    Mentioned
    14 Post(s)
    Tagged
    0 Thread(s)
    <value> is the number you are testing within the range. What snail meant was to compare your value to itself put inside of a range, like this:
    range val a.jpg (you don't have to use Compare Two General Values though, you can just compare to the value itself)

    Since the RANGE function caps a value between 2 numbers (the <minimum> and <maximum> of the range expression), if Value A = Range(Value A, 1,3) then that means Value A is >= 1 and <= 3. The condition wouldn't return true if Value A had = 0 or been above 3. This is a simple way of turning 2 checks into 1, and can tidy up your conditions for readability as well.

    Your checks would end up looking like this:

    if A = Range(A, 1, 3)
    if B = Range(B, 1, 3)
    if C = Range(C, 1, 3)
    +string success

    A tip: you can use this same method to check if objects are within position boundaries.

  4. #4
    Forum Moderator

    Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleMac Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)
    Perry's Avatar
    Join Date
    Dec 2013
    Location
    Watertown, WI
    Posts
    4,380
    Mentioned
    57 Post(s)
    Tagged
    0 Thread(s)
    aah ok.. had this, but it looked so odd. will change it back
    Thanks

Similar Threads

  1. Importing PNG with proper transparency
    By wie7nightmare in forum The Games Factory 2 - Technical Support
    Replies: 3
    Last Post: 9th July 2013, 08:20 PM
  2. Proper scaling for 3rd gen iPod?
    By PacoStudios in forum iOS Export Module Version 2.0
    Replies: 1
    Last Post: 29th December 2012, 11:00 AM
  3. Proper syntax for INI++ conditions
    By ffomega in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 27th July 2011, 07:48 PM
  4. Proper wav format
    By willy in forum XNA Export Module Version 2.0
    Replies: 2
    Last Post: 14th June 2011, 08:48 PM
  5. Counter not displaying proper number
    By jellytot in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 22nd January 2009, 10:11 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
  •