User Tag List

Results 1 to 7 of 7

Thread: Question about counters?

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module
    pdsoft's Avatar
    Join Date
    Mar 2011
    Posts
    72
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Question about counters?

    Is it possible to make a counter randomly choose specific numbers?
    For example:
    CounterA randomly selects only 5,7, 9 or 13.

    Here’s my current setup:

    --->When button is clicked
    - set CounterA to retrieve data from “Special” object and generate random number
    “Random(<Enter Base number>)”

    My question is, for the <enter base number> whats the best approach to specifying a group of numbers like 5, 7, 9, and 13?

    The reason Im trying this is because normally when dealing with a small pool of numbers (about 4) random selection picks the same number too often. I need to eliminate those odds completely and specify which numbers can be chosen.

    Any help or suggestions would be greatly appreciated.

    Thanks

  2. #2
    Clicker Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export ModuleUnicode Add-onInstall 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)

    Join Date
    Jul 2006
    Posts
    574
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    you could add the values to an array and then retrieve a random entry from the array.

    To retrieve a random number its best that you seed the randomizer also (you can use the timer for the seed). There is also an extension which i believe seeds for you and will return a true random number.

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module
    pdsoft's Avatar
    Join Date
    Mar 2011
    Posts
    72
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I haven't had any experience with arrays. Ive been trying to find some tutorials on that, once I get a little more info on them I'll give this a try.

  4. #4
    Forum Moderator

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator Pro
    nivram's Avatar
    Join Date
    Jul 2006
    Location
    Bandon, Oregon
    Posts
    6,773
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by pdsoft View Post
    I haven't had any experience with arrays. Ive been trying to find some tutorials on that, once I get a little more info on them I'll give this a try.
    Hi pdsoft. Chris Burrows knows a heck of a lot about arrays. Maybe he will read this thread and respond.

    Also, there is an open source example on my website that maybe you can take a look at.

    Marv
    ​458 TGF to CTF 2.5+ Examples and games
    http://www.castles-of-britain.com/mmf2examples.htm

  5. #5
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module
    pdsoft's Avatar
    Join Date
    Mar 2011
    Posts
    72
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nivram,
    You have excellent library of resources!
    Im going through there now and just remembered I came across your site before but accidentally lost the link, thanks for posting.

  6. #6
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    Stephen's Avatar
    Join Date
    Aug 2008
    Location
    Montana
    Posts
    4,515
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    It's on the sidebar now. -->
    _____________________________________________
    Nivram's Examples -Need extensions? Send me a PM.-


  7. #7
    Forum Moderator

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator Pro
    nivram's Avatar
    Join Date
    Jul 2006
    Location
    Bandon, Oregon
    Posts
    6,773
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by pdsoft View Post
    Nivram,
    You have excellent library of resources!
    Im going through there now and just remembered I came across your site before but accidentally lost the link, thanks for posting.
    Thank you pdsoft.

    Marv
    ​458 TGF to CTF 2.5+ Examples and games
    http://www.castles-of-britain.com/mmf2examples.htm

Similar Threads

  1. [Possible Bug] Counters
    By ProdigyX in forum Android Export Module Version 2.0
    Replies: 0
    Last Post: 23rd March 2012, 01:15 AM
  2. Question about counters
    By Hordolur in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 4th February 2009, 09:07 PM
  3. I need help with counters
    By Ganryu in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 15th November 2008, 03:21 PM
  4. Counters
    By Guitaristinmakin in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 29th August 2007, 04:01 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
  •