User Tag List

Results 1 to 4 of 4

Thread: Select 1 of 2 flags at random

  1. #1
    No Products Registered

    Join Date
    Sep 2009
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Select 1 of 2 flags at random

    I can't seem to figure out how to trigger the random selection of 1 of 2 flags.

    I am making a boss who will attack with one of two attacks when a counter reaches a certain value, but I need the flag to be randomly selected so the attacks come in no particular pattern. Any advice?

  2. #2
    Clicker Multimedia Fusion 2Android Export Module
    Corlen's Avatar
    Join Date
    Mar 2007
    Location
    Your House
    Posts
    848
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Select 1 of 2 flags at random

    Maybe it would be better if you used a variable instead and set the variable to random(2) then from there test if the variable is equal to 0 or 1.

  3. #3
    No Products Registered

    Join Date
    Nov 2009
    Posts
    327
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Select 1 of 2 flags at random

    that is good advice from corlen.

    create boss attack 1 and boss attack 2 as separate groups.

    create a counter set to random(2)

    every x seconds:
    - counter = 1
    - group 1 is not already active
    - group 2 is not already active
    = activate group 1

    every x seconds:
    - counter = 2
    - group 1 is not already active
    - group 2 is not already active
    = activate group 2

    edit:
    and of course do not to forget to deactivate your active group when the attack has finished

  4. #4
    No Products Registered

    Join Date
    Sep 2009
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Select 1 of 2 flags at random

    Brilliant! Thanks for the help, it's working great now.

Similar Threads

  1. How do I select a random frame in my project?
    By vbsd94 in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 13th January 2011, 05:10 AM
  2. [Request]Select Object - Select in events?
    By LB in forum Extension Development
    Replies: 1
    Last Post: 15th July 2009, 10:55 PM
  3. Help with flags
    By Dynamite in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 19th June 2008, 11:03 AM
  4. Using flags for my UI
    By mobichan in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 13th April 2008, 09:55 PM
  5. Flags
    By konjak in forum Multimedia Fusion 2 - Technical Support
    Replies: 55
    Last Post: 2nd July 2006, 02:53 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
  •