User Tag List

Results 1 to 2 of 2

Thread: Random Number command seem to be broken on 1 specific object...

  1. #1
    Clicker Fusion 2.5

    Join Date
    Jun 2012
    0 Post(s)
    0 Thread(s)

    Random Number command seem to be broken on 1 specific object...


    Not sure if I'm doing something wrong, but I seem to have an issue with the "Random(N)" command.

    I have a whole lot of objects that get set to a random set of numbers at the start of the frame. Often between 3 different numbers. This seems to work fine with all objects. Except one of them.

    One of them has the following event: "Set Alterable value A to 19 + Random(3)". This should set the value to 19, 20 or 21. But I noticed this object specifically ONLY lands on 21. I've checked over and over for like 15 minutes now, restarted the frame and tried. And not once has it not landed on 21. The odds of that happening are insanely low, so I must be doing something wrong.

    Any idea what it can be? Can it be too many objects are getting random numbers at once?

    EDIT: I tried to remove the "Set Alterable Value A to X + Random(N)" from all other objects except this one. And now it suddenly works. But putting it back on everything else, the problem returns. Can this mean it's because too much is happening at once or something? And if so, is there a workaround/fix for this?

  2. #2
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleXNA 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)Universal Windows Platform Export Module (Steam)
    piscesdreams's Avatar
    Join Date
    Dec 2007
    United States
    2 Post(s)
    0 Thread(s)
    You could replace the Random(N) action with RRandom(1,3) or whatever min/max numbers you prefer.

Similar Threads

  1. Replies: 2
    Last Post: 23rd May 2017, 10:16 PM
  2. Replies: 3
    Last Post: 15th August 2015, 08:58 PM
  3. Replies: 21
    Last Post: 21st June 2015, 08:26 PM
  4. Getting a random number between a negative and positive number
    By D_Light in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 9th January 2013, 10:51 PM
  5. Returning number of objects under a specific condition
    By Ibis in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 14th November 2012, 01: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