PDA

View Full Version : Animation not smooth


mayam
10-27-2003, 10:07 AM
Hi, i've implemented upwards scrolling news by loop animation:

there are 10 text items one beneath the other and a simple animation of the list going upwards, to make it look as if it loops all the time this list of items repeats the first couple items, so: list of 1,2,3...10,1,2,3 text lines.

the animation of going upwards goes from frame 1 to frame 100, 2 key frames: at frame 1 the list is in x=0 and y=0, and in key frame 100: x = 0 and y 500.

The problem is that the animation is not smooth - it looks as if it scrolls up by jumping small "jumps".. i m using MX (not 2004).

Thanks in advance,
Maya Malimovka.

emergency_pants
10-28-2003, 09:53 AM
500 pixels over 100 frames, means that your text has to move 5 pixels per frame. That's not so bad, but if you are running at the default 12 frames per second, it will definitely look a bit jumpy.

Try increasing your frame rate to 25 and see what difference it makes. With an increase in FPS you should also then be able to increase the tween length to maybe 200... that will make things smoother.

At slower framerates 5 pixels is quite visible. At 25fps things move fast enough to hide the 5 pixel jump. Increasing the total number of frames reduces the distance the text needs to travel per frame, thus creating a smoother result.

mayam
10-30-2003, 05:26 AM
that sounds good !!! i'll try it!

Thanks, Maya.