View Single Post
  #4  
Old 05-31-2012, 01:23 PM
Hezzy002 Hezzy002 is offline
Registered User
Join Date: Jul 2011
Posts: 247
Hezzy002 is a jewel in the roughHezzy002 is a jewel in the rough
One of the features of jQuery's animation lib is daisy-chaining animations.

item.animate().animate().animate();

Then they execute in that order. You can rig that up in GS2, should look into it.

In my engine, tweening is part of the built-in scripting features. I accomplish daisy chaining by having the first call return an animation object, which is then built upon by the member functions of the animation object. That way, you can animate multiple variables concurrently and with some nice synactic sugar, too.

Last edited by Hezzy002; 05-31-2012 at 02:22 PM..
Reply With Quote