FPS Help

ok, i noticed on certain websites that some things go fast, and other things go slow,my ? is, when im making somthing, the FPS is set to like 24 will say, but say i wanna make it fast at first, then slow it down. can anyone help on this subject :slight_smile:

you can create a function like this:

fps = function() {
	this.nextFrame();
}

to speed up your movie you’d set an interval

fpsinterval = setInterval(fps, milliseconds);

and to restore the normal fps you just need to clear the interval

clearInterval(fpsinterval);

just use the milliseconds you want to the function to wait between every execution and that’s it :slight_smile:

by the way … there are a few threads about this. i’d recommend a search :wink:

i didnt get any of that what soo ever, that Code stuff is new to me, is there other ways of breaking it down to my level :whistle:

it’s not that hard :wink:

in the first frame of the movie or a movie clip paste the function

let’s say that you want the first 120 frames to go at 48 frames per second. that would be something like 20 milliseconds … a little more i think.

in the first frame you’d have the interval

fpsinterval = setInterval(fps, 20);

then at frame 120 you clear the interval

clearInterval(fpsinterval);

=)