Object disappears when using a transition.to with inOutQuad easing

As the title says. It happens on the device and in the simulator.

[lua]display.setStatusBar( display.HiddenStatusBar )

–linear
text1 = display.newText( “Linear”, 0, 10, “Verdana-Bold”, 12 )
text1:setTextColor( 255,0,0 )

circle1 = display.newCircle(20, 60, 10 )
circle1:setFillColor(255,0,0,255)
transition.to(circle1, {time=3000, y=460})

–inOutExpo
text2 = display.newText( “inOutExpo”, 45, 30, “Verdana-Bold”, 12 )
text2:setTextColor( 255,0,255 )

circle2 = display.newCircle(65, 60, 10 )
circle2:setFillColor(255,0,255,255)
transition.to(circle2, {time=3000, y=460, transition = easing.inOutExpo})

–inOutQuad <<<< There seems to be a bug with that function
text3 = display.newText( “inOutQuad”, 90, 10, “Verdana-Bold”, 12 )
text3:setTextColor( 255,255,255 )

circle3 = display.newCircle(110, 60, 10 )
circle3:setFillColor(255,255,255,255)
transition.to(circle3, {time=3000, y=460, transition = easing.inOutQuad})

–outExpo
text4 = display.newText( “outExpo”, 135, 30, “Verdana-Bold”, 12 )
text4:setTextColor( 0,255,255 )

circle4 = display.newCircle(155, 60, 10 )
circle4:setFillColor(0,255,255,255)
transition.to(circle4, {time=3000, y=460, transition = easing.outExpo})

–outQuad
text5 = display.newText( “outQuad”, 180, 10, “Verdana-Bold”, 12 )
text5:setTextColor( 0,0,255 )

circle5 = display.newCircle(200, 60, 10 )
circle5:setFillColor(0,0,255,255)
transition.to(circle5, {time=3000, y=460, transition = easing.outQuad})

–inExpo
text6 = display.newText( “inExpo”, 225, 30, “Verdana-Bold”, 12 )
text6:setTextColor( 255,255,0 )

circle6 = display.newCircle(245, 60, 10 )
circle6:setFillColor(255,255,0,255)
transition.to(circle6, {time=3000, y=460, transition = easing.inExpo})

–inQuad
text7 = display.newText( “inQuad”, 270, 10, “Verdana-Bold”, 12 )
text7:setTextColor( 0,255,0 )

circle7 = display.newCircle(290, 60, 10 )
circle7:setFillColor(0,255,0,255)
transition.to(circle7, {time=3000, y=460, transition = easing.inQuad})[/lua] [import]uid: 5712 topic_id: 1124 reply_id: 301124[/import]

I believe this was fixed as bug #122 in Beta 5 – and when I try your sample, it looks like nothing disappears now? [import]uid: 3007 topic_id: 1124 reply_id: 3023[/import]

Looks like it’s fixed in Beta 5. The test program works as expected. Thanks to Michael for creating the code

Tom [import]uid: 6119 topic_id: 1124 reply_id: 3041[/import]

Yes, that was very handy code!

Anyone who wants to see a side-by-side visual comparison of all the transition types should check it out. [import]uid: 3007 topic_id: 1124 reply_id: 3056[/import]

Pretty cool code! :slight_smile: Put in triggering by orientation changes… name it iSitter and sell it to parents of 3 year olds … would exceed usefulness and quality of 50% from all apps in the store I bet :stuck_out_tongue: [import]uid: 6928 topic_id: 1124 reply_id: 3297[/import]