Flash Question

Out of context: Reply #1

  • Started
  • Last post
  • 3 Responses
  • Autokern0

    so, if i get this correctly this means that the
    car is into a movieclip with a certain number of frames
    and what you want to do is basically slow down the framerate at which that movieclip is playing. Correct?

    To be fair, it's quite a tricky problem in the way you set up the thing.

    The best way i can think about to solve it would be to have an enterframe that plays the car Mc
    And pressing the button what you will do is to make that enterframe
    "skip"frames according to how much the brake has been pressed.

    The problem with this is the movement will look jerky and the slowing down will not be smooth
    (because you'll slow the framerate the car will pass from playing to, say, 25 fps, to 12.5fps (a frame of the car each 2 of the main framerate) or 6.25 fps ( a frame each 3).

    Alternatively you could work around this problem with a setInterval, which relyes on milliseconds than frames.

    I can write you the functions you need. Just wanted to understand the problem first.

    • yeah, basically mate, I just want a button that will gradually slown down a running movie clip and stop it.Bullitt

View thread