When Director does "tweening" it's using parametric
animation, but doing it in lingo gives much more variety and control.
Take a look at this simple example and notice how it differs from incremental
animation.
property
sp property param --parameter
onbeginsprite(me)
sp = sprite(me.spritenum)
param = 0 end
Parametric animation - source
movie - To pause, right-click and select "pause"
What's going on here? Two points:
1. The sprite properties that are being animated, loch
and locv, are set to expressions that rely on
param. One way to say this is
that "loch is a function of param" and "locv
is a function of param."
2. The variable param goes
through values from 0 to 125. It is driving
the animation. It is a standard feature of parametric
animation and in subsequent demos will simply be p,
and called "the parameter."
These are the two parts that make up parametric animation.
Before continuing, make sure you are familiar with the material
in Functions and Shifting
& Scaling Numbers.