PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

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

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
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.