User Tag List

Results 1 to 3 of 3

Thread: Possible?

  1. #1
    No Products Registered

    Join Date
    May 2009
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Possible?

    Is it possible to have something randomly choose and do and event? If so how? for example:

    having 3 events and every 10 seconds it randomly choose one of those 3 events and then carries out selected event

  2. #2
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Jaffob's Avatar
    Join Date
    May 2008
    Location
    USA
    Posts
    1,833
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Possible?

    Code:
    Every 10 Seconds:
       -Set Global Value A to random(2)
    
    Every 10 Seconds--
    Global Value A = 0:
       -[Action]
    
    Every 10 Seconds--
    Global Value A = 1:
       -[Action]
    
    Every 10 Seconds--
    Global Value A = 2:
       -[Action]
    You don't have to use Global Value A, you could just use a counter.

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

    Re: Possible?

    You can do this with a random value, such as a counter.

    User clicks on a button
    Counter: set random(4)-1 (that would be based on 0-3 counter)

    Counter=1
    Do your event

    Make sure you reset your counter to 0

    Marv

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •