User Tag List

Results 1 to 6 of 6

Thread: Making animation play random number of times....

  1. #1
    No Products Registered

    Join Date
    Dec 2006
    Posts
    55
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Making animation play random number of times....

    So I have object A with animation A which is a looped animation (I could make it not a looped animation if need be). I'd like object A to play an animation a random number of times (but with 15 times being the max). I am hoping someone can explain, in fine detail, what steps I need to take to accomplish this.

    Thanks!

  2. #2
    No Products Registered

    Join Date
    Dec 2006
    Posts
    1,332
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Making animation play random number of times..

    What you could do is:

    +Start of frame
    -Set Alterable Value A of Active to Random(15)+1

    +Current Frame of Active = Number of frames of your active-1
    -Subtract one from Alterable Value A

    +Alterable Value A of Active = 0
    -Force Animation Frame to 0
    -Set animation speed to 0

  3. #3
    Clicker Multimedia Fusion 2 DeveloperiOS Export Module

    Join Date
    Jun 2006
    Posts
    1,322
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Making animation play random number of times..

    Ooops sorry Brandon, I did something a bit different

    http://www.clickteam.com/epicenter/ubbthreads.php?ubb=showflat&Number=48198&page=0#Po st48198

  4. #4
    No Products Registered

    Join Date
    Dec 2006
    Posts
    1,332
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Making animation play random number of times..

    Hmm, thats odd, I just checked mine and it works until the last event, because the animation just keeps going and the speed doesn't go to 0. There is a workaround, but I prefer your method, except instead of a counter, you could use Alterable Values.

  5. #5
    Clicker Multimedia Fusion 2 DeveloperiOS Export Module

    Join Date
    Jun 2006
    Posts
    1,322
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Making animation play random number of times..

    I agree about the AVs - the counter just makes a nice visual for an example.

  6. #6
    No Products Registered

    Join Date
    Dec 2006
    Posts
    55
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Making animation play random number of times..

    Thanks very much for the help Brandon, and Sarah? Did you make that just for me Sarah? Thanks you so much! I'm actually sort of a beginner and have never created a "Group" like this. But I'm sure I can figure this out from your example.
    Thanks again!

Similar Threads

  1. Getting a random number between a negative and positive number
    By D_Light in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 9th January 2013, 10:51 PM
  2. Random Speed + Ypos at random times
    By Keehan in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 14th May 2011, 05:25 PM
  3. Play animation on collision. Destroy animation
    By Maarten in forum Multimedia Fusion 2 - Technical Support
    Replies: 11
    Last Post: 30th November 2010, 11:38 PM
  4. Random number
    By Mayfly in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 27th August 2008, 11:36 AM
  5. Animate a Random number of times
    By Sarah in forum File Archive
    Replies: 0
    Last Post: 17th July 2007, 07:20 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
  •