Skip to main content
skysajedi
Known Participant
July 21, 2017
Answered

Slowing Down A Movie Clip - Is There An Easy Way.

  • July 21, 2017
  • 3 replies
  • 4218 views

Hello,

I am building a simple movie clip and want it to run at 5 or 6 fps. My entire animation is running at 30 fps. I'm looking for a simple script to run the movie clip at a slower rate.

Can you direct me to where I might find a script what will work in Adobe Animate? All the Google stuff does not work.

Thank you,

Sky

    This topic has been closed for replies.
    Correct answer robdillon

    As I stated in the original query, I am looking for a script, hopefully short that will allow a Movie Clip to run at a different frame rate than the main animation.

    It really does not matter what the main animation is, it matters to the movie clip that is continuously running inside the main animation. So, as I have indicated in the original post:

    Hello,

    I am building a simple movie clip and want it to run at 5 or 6 fps. My entire animation is running at 30 fps. I'm looking for a simple script to run the movie clip at a slower rate.

    Can you direct me to where I might find a script what will work in Adobe Animate? All the Google stuff does not work.

    Thank you,

    Sky

    Hopefully placing this here, you will read it!


    As I said in my first post, you can achieve this using a timer. You set a timer to advance the movieClip at a set interval. It won't give you a very smooth animation, particularly at frame rates below 10 fps. Things tend to look jerky rather than smooth. Another consideration is that the slower movieClip will also need to be shorter in total frames. If your main animation is running at 30 fps and it 300 frames long, for instance, then the movieclip running at 2 fps will only get to show 20 frames.

    Here's an example of how that might work: http://www.ddg-designs.com/downloads/framerates.zip

    The code to control the slower movieClip is located inside the movieClip.

    3 replies

    Legend
    July 21, 2017

    If this is something that will always play at an apparent lower frame rate, then you are Doing It Wrong by trying to programmatically change the frame rate. Just design it to look how you want it to look in the first place.

    skysajedi
    skysajediAuthor
    Known Participant
    July 21, 2017

    Hello, thank you for your response.

    First, yes, this movie clip will always run in the background.

    I tried the stretch out the timeline, and, it does slow down the clip quite a bit. but, when I go past 1500 frames, the entire animation will not test, unless I remove the MC completely.

    The MC is nothing more that a PNG that I have subdued with the alpha channel. I really like the action, but, the MC needs to be running at 2 maybe 3 fps.

    Oh, I have designed it exactly the way I want it, and, changing the frame rate WILL slow down the other animations I have designed into the entire piece.

    Legend
    July 22, 2017

    Errr, 1500 frames just for a background animation? What exactly is this animation? Maybe it's something that could be converted to code.

    robdillon
    Participating Frequently
    July 21, 2017

    Do you want to change the frame of this movie clip at runtime, say in response to some user input? Or do you just want that one movie clip to play at the slower rate? If it's the second then you could just make that movie clip's timeline longer and seems to be playing at a slower rate.

    If it's the first then you could, if your movie clip uses the timeline, write a timer action that has the playback head in that movie clip wait some number of ticks and advance to the next frame for each of the frames in that movie clip.

    skysajedi
    skysajediAuthor
    Known Participant
    July 21, 2017

    I've tried this script but, it does not work.

    stage.frameRate = 12;