Page 1 of 1

Star Defense--> Ease In and Ease Out Animation Optimizati

PostPosted: Sep 9, 2009 @ 7:16am
by Don_Megga
DOes Edgelib support a variety of timing functions for animation sequences? Are there custom classes or can I take advantage of the timing functions within core animation (ease in and ease out).

The reason I am asking is because the planet in star defense has an excellent response to pinching in an out. It is not abrupt. It actually slows down when at the end of a zoom in or out (or camera translation).

Thanks!

Don Megga

PostPosted: Sep 14, 2009 @ 8:41am
by edge
Hi Don Megga,

The pinch animation is not really that complicated. It uses a simple velocity variable which is used for incrementing the zoom factor.

There is also a timer class available which speed can be altered run-time. This can be used for slowdown effects.