Hello,
I'm using the easing library posted by @scarnie :
http://developer.anscamobile.com/code/more-easing
for example the easeInOut curve is connected by two curves easeIn and easeOut, its function is like this:
1 2 3 4 5 6 7 | _easeInOut=function(ratio) if (ratio < 0.5) then return 0.5 * _easeIn(ratio*2.0) else return 0.5 * _easeOut((ratio-0.5)*2.0) + 0.5 end end |
Try doing the transition 10 times. One way might be to use the params.onComplete option to decrement a counter and repeat the transition until the counter is down to 0.
Or, maybe you could use timer.performWithDelay with the number of loops parameter.
Hi, it works thank you!
i was trying to modify and create a new easing function by using the easeInOutBack, also i didn't notice there have 2 bugs fixed below