User Tag List

Results 1 to 3 of 3

Thread: Need some help with randomizing

  1. #1
    Clicker Multimedia Fusion 2

    Join Date
    Feb 2007
    Location
    UK
    Posts
    243
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Need some help with randomizing

    I've got a simple active with the bouncing ball movement, it moves up and down.

    I need it to stop at a random time and play an animation. When that animation is over it changes back to the previous animation and movement continues until it randomly stops again and so on.

    It's the randomizing of the stopping I can't figure out.

  2. #2
    No Products Registered

    Join Date
    Jul 2015
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You can do something like this

    +Every (set a limit as to how often it can stop)
    -> set Alterable Value to Random( [total number of chances] )

    +if Alterable Value <= [number of chances]
    +(negate) Animation is playing
    ->Play animation

    +If animation is playing
    +Current frame of active < [number of last frame of animation]
    -> stop movement

    +If animation is playing
    +If current frame = [number of last frame of animation]
    -> start movement


    The first and second events handle the "Random" part. The third event handles the stopping, and the fourth event handles the resuming of movement.

  3. #3
    Clicker Multimedia Fusion 2

    Join Date
    Feb 2007
    Location
    UK
    Posts
    243
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks DJT4NN3R, works a treat.

Similar Threads

  1. randomizing
    By pikzilla in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 2nd April 2009, 10:02 PM
  2. Randomizing Pick?
    By Jdsfrog in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 24th December 2008, 09:52 PM
  3. randomizing values
    By Cossin in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 10th September 2008, 11:27 PM
  4. Randomizing anims
    By mussashimits4 in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 13th July 2006, 11:47 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
  •