Transition doubt - varying speed in a transition

All right! I have the following transition
[lua] transition.to(object,{time = 2000,x = object.x + 500}) [/lua]

Is it possible to control the speed of the transition.Say I want the object to cover only 200 pixels during the first 1000 ms and the remaining 300 pixels in the last 1000 ms.
Sort of like what easing does, but easing varies the velocity from 0 to max. I need to be able to choose the speed.
As of now I have a workaround module which manually splits the transition into two… But is there a more efficient way? [import]uid: 64174 topic_id: 18690 reply_id: 318690[/import]

Ah! Found it…
http://developer.anscamobile.com/content/animation/#Easing
So we can define custom easing functions! Never knew that! [import]uid: 64174 topic_id: 18690 reply_id: 71830[/import]

You’re getting too quick for me Satheesh!

Easing is a lot of fun to play around with - hope you can get the effect you want :slight_smile:

Peach [import]uid: 52491 topic_id: 18690 reply_id: 71843[/import]

Hi Peach :slight_smile:

Any pointers on how to create a good easing function?

My math has gone a bit rusty and I’m breaking my head here!

EDIT: Ah well never mind! had to refresh my high school math a bit but got it working somehow! :slight_smile: [import]uid: 64174 topic_id: 18690 reply_id: 71851[/import]