User Tag List

Results 1 to 4 of 4

Thread: Random Rain

  1. #1
    No Products Registered

    Join Date
    Aug 2007
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Random Rain

    Hey everyone, I have another question!

    In my game right now I have it so it rains, all the time though. I want to make it so it'll randomly rotate between rain and clear weather every once in a while. Is there anyway I can do this?

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module
    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)
    Popcorn's Avatar
    Join Date
    Jun 2006
    Location
    Norway, Bergen
    Posts
    2,333
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)

    Re: Random Rain

    Every minute or so you can set the counter to a random value.
    Counter: Set current value to Random(2)

    The counter will be either 0 or 1.

    When the counter is 1, make it rain.

    If you want the rain to occur less then 50%, have it generate a greater random value.

  3. #3
    Clicker Fusion 2.5 Developer

    Join Date
    Jul 2008
    Posts
    1,298
    Mentioned
    10 Post(s)
    Tagged
    0 Thread(s)

    Re: Random Rain

    That's basically it, but you'll probably want to tweak it a little bit.

    For example, it may be that you want rain to be quite rare, but then once it starts raining, you want it to keep raining for a long, but variable length of time.
    In that case, you'd want the probability of rain to vary depending on whether or not it's raining already.

    + every 30 seconds
    + already raining
    + random(100) < 75
    -> keep raining...

    + every 30 seconds
    + NOT already raining
    + random(100) < 10
    -> start raining...

    Keep experimenting until you get it just how you want it

  4. #4
    No Products Registered

    Join Date
    Aug 2007
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Random Rain

    Thanks, both of you. I used what you said, MuddyMole and got it to work how I wanted. :grin:

Similar Threads

  1. Rain
    By Keith in forum iOS Specific Example Files
    Replies: 4
    Last Post: 6th October 2013, 02:47 PM
  2. object rotation, and scrolling rain.
    By jhonson in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 16th November 2008, 04:20 PM
  3. Rain with Particle Spray
    By LB in forum File Archive
    Replies: 2
    Last Post: 8th February 2008, 09:02 PM
  4. Two Questions; Mouse hiding + Top-down rain.
    By SergeantBiscuits in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 21st January 2008, 02:34 PM
  5. Rain Effectsre once again
    By Ravi in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 13th November 2007, 06:21 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
  •