User Tag List

Results 1 to 7 of 7

Thread: Random Animation not working?

  1. #1
    Clicker Fusion 2.5 DeveloperiOS Export ModuleSWF Export Module
    XStar's Avatar
    Join Date
    Feb 2012
    Location
    Winchester, VA
    Posts
    1,165
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Random Animation not working?

    I have a crystal with animations labeled Green, Red, Blue, ect. and when the enemy explodes, drop crystals. I set the animation to a calculation Random(5)+1, but the animation always stays at the first animation Green. Please help!

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleMac Export ModuleUnicode Add-on
    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)
    AyreGuitar's Avatar
    Join Date
    Jan 2011
    Location
    Wales, UK
    Posts
    1,113
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Try using Random(5)+12. The standard animations (Stopped, Walking, Running, etc) take up the lower values, even if you don't use them, then MMF uses the closest animation it can find (in your case Green)

  3. #3
    Clicker Fusion 2.5 DeveloperiOS Export ModuleSWF Export Module
    XStar's Avatar
    Join Date
    Feb 2012
    Location
    Winchester, VA
    Posts
    1,165
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks! It worked! Now can you explain how the randomization worked?

  4. #4
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleSWF Export Module
    Konidias's Avatar
    Join Date
    Aug 2009
    Posts
    1,546
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    There are 12 default animations in an object so you have to take the 12 into consideration (hence the 12) The animation number actually starts at 0 though, so your default animations are 0-11

    So if you do 12+Random(5) it's going to set the animations randomly from 12-16.

    Since Random(5) will pick a random number from 0-4. 12 + 0-4 = 12-16

  5. #5
    Clicker Fusion 2.5 DeveloperiOS Export ModuleSWF Export Module
    XStar's Avatar
    Join Date
    Feb 2012
    Location
    Winchester, VA
    Posts
    1,165
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Oh! That makes sense! Thanks for the feedback!!!

  6. #6
    Clicker Fusion 2.5 MaciOS Export ModuleInstall 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
    Oct 2016
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by AyreGuitar View Post
    Try using Random(5)+12. The standard animations (Stopped, Walking, Running, etc) take up the lower values, even if you don't use them, then MMF uses the closest animation it can find (in your case Green)
    Hello, have problem with random, it's show only stopped animation. How i can randomise it? (using active animation Walking/Running/Appearing/Disappearing)

    UPD:
    Try Random(5)+1 and all good, thanks for thread.

  7. #7
    No Products Registered

    Join Date
    Aug 2016
    Posts
    19
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    That makes sense! Now it worked.

Similar Threads

  1. BUG: Counter set to aways (random) it's not working
    By paobrasil in forum Android Export Module Version 2.0
    Replies: 3
    Last Post: 8th April 2013, 11:48 PM
  2. [ASK] How to make animation and random objects
    By L13n in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 2nd November 2012, 12:19 PM
  3. Random Animation Issue
    By xhedgehogx in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 25th September 2012, 03:17 AM
  4. Random animation frame, still plays?
    By Raylax in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 15th October 2008, 09:04 AM
  5. Playing Random Animation
    By mussashimits in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 19th July 2007, 11:00 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
  •