User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 17

Thread: Irregular animation?

  1. #1
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export Module
    Outcast's Avatar
    Join Date
    Jan 2011
    Location
    Sweden
    Posts
    3,237
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)

    Irregular animation?

    Is there any trick you can use to make the objects of the same type have irregular or unsynced animations? I have trees in my map that "blow" in the wind. The problem is that all of them are basiclly the same object so when the level starts they all "blow" in the same rytmic fashion. I would like a bit of varity in the syncing of that animation between the trees.. any tips?

  2. #2
    No Products Registered

    Join Date
    Jan 2011
    Posts
    36
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Irregular animation?

    Im assuming you could use some programming to make the trees animations go off at different times.
    How this work, I am not sure sadly.

  3. #3
    Clicker Multimedia Fusion 2

    Join Date
    Aug 2009
    Location
    Finland
    Posts
    39
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Irregular animation?

    You could try forcing the object to a random frame number at the start of the frame. It should randomize a different value to each object. I think you need to also set the objects to resume animation after that, or they'll pause the animation to the set frame.

    * Start of Frame
    ->Force Animation frame of Object to Random(#)
    ->Object: Resume animation

    (Or something like that. I forget the exact commands.)

    # is the total number of frames for the animation, so if you have an animation with 10 frames, you'd use 'Random(10)' in the expression editor.

    You could also try setting a random animation speed with the same method, if you want the speed to vary too. For instance, if the default speed is 20, and you'd like it to vary by 10 to either direction, you could do 'Random(20)+11', which would result in a random value between 10 and 30.

    Maybe even a bit of both solutions?

  4. #4
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export Module
    Outcast's Avatar
    Join Date
    Jan 2011
    Location
    Sweden
    Posts
    3,237
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)

    Re: Irregular animation?

    Quote Originally Posted by HitmanN
    You could try forcing the object to a random frame number at the start of the frame. It should randomize a different value to each object. I think you need to also set the objects to resume animation after that, or they'll pause the animation to the set frame.

    * Start of Frame
    ->Force Animation frame of Object to Random(#)
    ->Object: Resume animation

    (Or something like that. I forget the exact commands.)

    # is the total number of frames for the animation, so if you have an animation with 10 frames, you'd use 'Random(10)' in the expression editor.

    You could also try setting a random animation speed with the same method, if you want the speed to vary too. For instance, if the default speed is 20, and you'd like it to vary by 10 to either direction, you could do 'Random(20)+11', which would result in a random value between 10 and 30.

    Maybe even a bit of both solutions?
    That sounds interesting, but can you be more specific of the commands? I cant find any Force Animation frame or the like :/

  5. #5
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export Module
    Outcast's Avatar
    Join Date
    Jan 2011
    Location
    Sweden
    Posts
    3,237
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)

    Re: Irregular animation?

    Now i found the fore animation but not the "resume animation" :/

  6. #6
    No Products Registered

    Join Date
    Dec 2010
    Posts
    30
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Irregular animation?

    I don't think you need to "resume animation"...
    Also, when using force frame to: _, the frames start at 0, not 1. So if you had 10 frames in an animation, you would set it to random(9). I think.

  7. #7
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export ModuleInstall Creator Pro

    Join Date
    Sep 2008
    Location
    Melbourne, Australia
    Posts
    227
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Irregular animation?

    I tend to set random speeds when I want to offset duplicate object anims. For trees this would work well as you can set a speed change every second or so which will change the speed of all trees differently (obviously there's a chance some will set to the same speed). It'll randomise the motion somewhat like gusts of wind - of course this depends on how the trees are animated too.

    Another thing to consider is create two or more sets of animations with different numbers of frames. Randomly choosing a different animation once one is over gives you more variations again.

  8. #8
    Clicker Multimedia Fusion 2

    Join Date
    Aug 2009
    Location
    Finland
    Posts
    39
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Irregular animation?

    Quote Originally Posted by Outcast
    Now i found the fore animation but not the "resume animation" :/
    Sorry, it was probably just 'Start animation' then.

    Quote Originally Posted by VAH
    I don't think you need to "resume animation"...
    Perhaps. I can't remember for sure. Just that my head says that when you force a frame, you effectively command it to be a specific frame, without further instructions. I could be wrong though.

    Quote Originally Posted by VAH
    Also, when using force frame to: _, the frames start at 0, not 1. So if you had 10 frames in an animation, you would set it to random(9). I think.
    'Random'-generated values start at 0, so Random(10) generates a value between 0-9, not 1-10. And yes, animation frames are also 0-based, so first frame is frame numbered 0. So if you have ten frames, the frames are 0-9. 'Random(10)' would provide the exact range of possible options, 0-9.

  9. #9
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export Module
    Outcast's Avatar
    Join Date
    Jan 2011
    Location
    Sweden
    Posts
    3,237
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)

    Re: Irregular animation?

    Quote Originally Posted by ionside
    I tend to set random speeds when I want to offset duplicate object anims. For trees this would work well as you can set a speed change every second or so which will change the speed of all trees differently (obviously there's a chance some will set to the same speed). It'll randomise the motion somewhat like gusts of wind - of course this depends on how the trees are animated too.

    Another thing to consider is create two or more sets of animations with different numbers of frames. Randomly choosing a different animation once one is over gives you more variations again.
    I tried your idea and it worked fine! Some more "problems" arise as usuall though

    I put in "Every 5 sec: Change Speed to "Random(4)" So i guess it picks a speed up to 4. The problem is that they seem to be able to chose speed 0 also, witch makes some of the trees stand completly still.

    How do i pick a random from a number to a number?

    That could also be usefull if i want some level with more wind, then i could have the range of random between 5-10 for example.

  10. #10
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jun 2006
    Location
    Darlington, UK
    Posts
    3,298
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Irregular animation?

    For a random number between 5 and 10 you do:
    Random(10-5) + 5 (excluding 10)
    or
    Random(10-5+1) + 5 (including 10)

Page 1 of 2 1 2 LastLast

Similar Threads

  1. irregular vertical counter
    By SolarB in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 15th October 2012, 07:53 AM
  2. 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
  3. Animation
    By Janman in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 13th November 2009, 06:28 PM
  4. Clicking on an irregular area (RISK-like game)
    By CKX in forum Multimedia Fusion 2 - Technical Support
    Replies: 11
    Last Post: 23rd September 2008, 10:09 AM
  5. Bouncing with irregular shapes not working
    By benjamin in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 24th August 2006, 01:10 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
  •