User Tag List

Results 1 to 3 of 3

Thread: Spread Value, but skip Zero

  1. #1
    Clicker Multimedia Fusion 2 DeveloperiOS 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)
    King_Cool's Avatar
    Join Date
    Aug 2008
    Posts
    2,335
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Spread Value, but skip Zero

    Hi
    I want to Spread the Value ( -2 ) throughout 4 Instances of Active, but i want to skip the number 0 like this:

    Inst#1 AltVal = -2
    Inst#2 AltVal = -1
    Inst#3 AltVal = 1
    Inst#4 AltVal = 2

    ...
    Is there any smart way of achieving this ( through mathematics perhaps ), or is the only way to create a seperate Conditio which offsets the Value by 1 ( for Value >= 0 )?

  2. #2
    Clicker Fusion 2.5 Developer

    Join Date
    Jul 2008
    Location
    UK
    Posts
    1,393
    Mentioned
    16 Post(s)
    Tagged
    0 Thread(s)
    You can say:

    + Always
    -> Spread value -2 in X
    -> Set X to X + max(0, (X+1) / abs(X+1))

    At least that doesn't need a second event.

  3. #3
    Clicker Multimedia Fusion 2 DeveloperiOS 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)
    King_Cool's Avatar
    Join Date
    Aug 2008
    Posts
    2,335
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by MuddyMole View Post
    You can say:

    + Always
    -> Spread value -2 in X
    -> Set X to X + max(0, (X+1) / abs(X+1))

    At least that doesn't need a second event.
    Very cool!
    Thanks MuddyMole, i know this will be of great use to me in the future as well!

Similar Threads

  1. How are spread values spread ?
    By rudy in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 6th December 2011, 08:15 PM
  2. Skip installation of already installed files.
    By MartinR in forum Install Creator and Patch Maker
    Replies: 2
    Last Post: 30th January 2011, 01:35 PM
  3. Spread value
    By krestalex1 in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 27th November 2007, 09:30 PM
  4. Looks like they fixed the loop skip bug :)
    By LAJ in forum File Archive
    Replies: 1
    Last Post: 7th July 2006, 10:24 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
  •