transition = easing.continuousLoop question

Hi,

i just tried for the first time the easing function “easing.continuousLoop”. i made following little example:

local circle =  display.newCircle( 100, 100, 30 )
circle.anchorX, circle.anchorY = 0.5, 0.5
circle:setFillColor(1,0,0,1)

transition.to( circle, {time = 5000, y = 400, transition = easing.continuousLoop} )

Now i would have expected that the transition moves the circle from its current position to the y coordinate of 400 and then returns it to the starting position. But that did not happen. After transition.to the circle is at the y coord 400 and not 100.

Do i understand something wrong or is it a bug? I use the last public release.

Thomas

Hi Thomas,

Does the circle even begin to move back toward its original location? I believe a little bug was fixed on this easing method in a recent daily build, which isn’t available for Starter users, but it will be rolled into the next public build.

Best regards,

Brent

I just ran into a similar problem with this code:

transition.to( rocket, {rotation=rocket.rotation + 25, time=1000, transition=easing.continuousLoop} )

The rocket should rotate 25 degrees and then rotate back to its starting rotation.

It does exactly that, but at the end of the transition when it comes back, the rotation jumps to 25 degrees again and stays there.

Temporarily patched by adding an onComplete to the transition.

Hi Thomas,

Does the circle even begin to move back toward its original location? I believe a little bug was fixed on this easing method in a recent daily build, which isn’t available for Starter users, but it will be rolled into the next public build.

Best regards,

Brent

I just ran into a similar problem with this code:

transition.to( rocket, {rotation=rocket.rotation + 25, time=1000, transition=easing.continuousLoop} )

The rocket should rotate 25 degrees and then rotate back to its starting rotation.

It does exactly that, but at the end of the transition when it comes back, the rotation jumps to 25 degrees again and stays there.

Temporarily patched by adding an onComplete to the transition.