[XXX]
An objects whose attributes can be animated
Animated attribute must be instance (not class) attribute in order to work. Every animated attribute must be assigned a normal value before it can be animated. Usually this is done in the constructor.
Each AnimatedObject needs a timer to animate. This can be either through an argument to the animate method, or in an instance attribute. The constructor takes a timer value to set the instance attribute to.
Animate the given attribute
Calls self.apply(self.animation(...), dt=dt). Returns the resulting Action.
Return an animation Action for the given attribute.
When this Action is run, the given attribute will be gradually set to the new value. The style of the animation is given by options.
See gillcup.effect.animation() for what options are available.
Schedule action on this object’s timer
dt is the time in which the Action is to be executed (measured from the timer’s current time). timer can be given to specify the timer to use; if None, self’s timer will be used