User Tag List

Results 1 to 4 of 4

Thread: Randomly choose a counter for a number

  1. #1
    Clicker Fusion 2.5 (Steam)

    Join Date
    Dec 2014
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Randomly choose a counter for a number

    Hey guys,

    I am trying to figure out how to randomly choose a counter to put a random value in.

    The counters I am trying to do this in control how many enemies spawn at certain spawn points and control what is spawned. At this time I have just been manually telling it to randomly choose a number at the same time in each counter, but this is causing enemies to spawn overlaped.

    Thanks for the help.

  2. #2
    Clicker Fusion 2.5 (Steam)

    Join Date
    Dec 2014
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Here is an example of the current code I have.

    At this time the spawner counters are given the Random() calculation manually under Enemy Waves >> Primary Enemy Counter. I have added events to spawn the enemy types at different intervals. I would like to just choose a spawner counter at random to give a random number to.

    Counters.mfa

  3. #3
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export Module

    Join Date
    Dec 2013
    Posts
    156
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Put the same qualifier to all your counter objects. Then on the events pick one at random from the qualifier group. This should randomly select one from the counter objects and then you can put your actions.

  4. #4
    Clicker Fusion 2.5 (Steam)

    Join Date
    Dec 2014
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Vaxx, you are awesome!

    Here is what I did:

    Set a qualifier on each counter like Vaxx suggested

    Event:
    Every 00"-20
    Pick an object at random (found under 'create new objects')
    - Set counter to Random(5)+1 (for the qualifier that was created above)

Similar Threads

  1. [bug] COUNTER (number of decimals)
    By StingRay in forum Android Export Module Version 2.0
    Replies: 0
    Last Post: 9th April 2013, 12:27 PM
  2. Large number display in Counter Objects?
    By Benicle in forum iOS Export Module Version 2.0
    Replies: 3
    Last Post: 7th December 2012, 09:46 AM
  3. number of purchases counter
    By lachmandoo in forum iOS Export Module Version 2.0
    Replies: 8
    Last Post: 2nd April 2012, 01:40 PM
  4. Counter not displaying proper number
    By jellytot in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 22nd January 2009, 09:11 AM
  5. [Bug?] Counter and fixed number of digits = 0
    By Tiles in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 23rd December 2007, 11:20 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
  •