User Tag List

Results 1 to 3 of 3

Thread: Random problem

  1. #1
    Clicker 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)

    Join Date
    Jun 2011
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Random problem

    Hello, first of all I would like to apologize for my english.
    Second: I'm facing a problem with random events, I'll try to be brief.
    So I have this frame where my object is randonly sized (by object resizer extension)and there is 11 types of sizes. At the start of the application the "user" can select how many types of size he would like to be shown (up to 11). So I set Random(Val(Number of stimulus))- where "number of stimulus" is the global string that he typed at the begin of the app.
    Then I set for each of the possibles results one type of size (maximum of 11). So far, so good.
    My problem: If the "user" had seen one type of size he cannot see it again. An exemple: I have 11 conditions, one of them is chosen randonly, let's say it's number 7. Next time he runs the frame number 7 cannot be chosen again! The app ends when all the number have been chosen, and all the conditions shown. It's like a problem with an urn, every time I pick up a ball randonly until it has no more balls, but I cannot pick a ball that I had already picked!
    So I tried everything I could think of, and I just couldn't do it. If anyone has a expression or one way to do it I would really appreciate.

  2. #2
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Re: Random problem

    You have three options:
    1. Add the sizes to a list object, and when you pick a random one from the list, also delete it.
    2. Use the Random Pool object, it does this for you.
    3. Use the Random Multipool object, it does the same as the Random Pool object but with multiple 'lists' and more features.

    I recommend #2 for this situation
    Working as fast as I can on Fusion 3

  3. #3
    Clicker 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)

    Join Date
    Jun 2011
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Random problem

    I had to use the multipool object...Anyway, thank you so much you saved my project!

Similar Threads

  1. Random displaying problem!
    By Radical in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 25th October 2013, 09:44 PM
  2. A random problem
    By Watermelon786 in forum File Archive
    Replies: 3
    Last Post: 2nd January 2011, 08:50 PM
  3. Random number problem
    By Bk90 in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 29th December 2009, 12:19 AM
  4. RANDOM problem
    By siriso in forum The Games Factory 2 - Technical Support
    Replies: 8
    Last Post: 8th October 2008, 07:16 AM
  5. random value + another problem
    By Tolkkiz in forum The Games Factory 2 - Technical Support
    Replies: 5
    Last Post: 13th November 2007, 08:27 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
  •