[Tweener] Tweens group current state
Zeh Fernando
zeh at zehfernando.com
Fri Aug 1 07:37:59 PDT 2008
> I just figured out my mistake :-) gave me a 40 min's break+sweating,
> already made this few times,
> and still i run in the same trap again.
> However, thank you for the answer, another question, what is the
> advantages/disadventages of using frame's?
You mean useFrames?
The basic premise is: never use it, don't even worry or think about it,
unless you're REALLY sure of what you want to do.
I say this as a warning because many times people have this
misconception of using frames against time or whatever, hoping it'll be
magically better, but it's a mistake.
In a nutshell, useFrames tie the animation to the actual rendering
performance, so you should use it when instead of taking 1 sec to
animate something, you want it to take exact 30 frames (regardless of
the actual time). The problem with this approach is that animation won't
be necessarily fluid, and tweening playtime will vary from computer to
computer - dropping frames but rendering them mathematically correct
(what the default time use does) is way better, for animation smoothness.
However, one real example where you need useFrames is when you want to
create an animation and generate all the frames as separate Bitmap
files. Since you want ALL frames rendered, instead of a smooth realtime
animation played once, you use useFrames. Then independently of the time
it takes on each different computer, all frames will be rendered with
equal "spacing" between the frames (then you could later "play" the
frames and stuff like that).
Zeh
More information about the Tweener
mailing list