sequencial transition

Hi, all

I have a small object and I want to make its alpha from 0 to 1 unlimited times.

I know how to do change alpha from 0 to 1 and 1 to 0 as below.

transition.to( smallObject, {time=1000, alpha=0})
transition.to( smallObject, {delay = 1, time=1000, alpha=1})

What’s the good way to do this for unlimited times? [import]uid: 118567 topic_id: 21153 reply_id: 321153[/import]

mg.kim,

have you read this article? it talks about how to do what you are after.

http://howto.oz-apps.com/2011/07/how-to-pulsate-using-coronasdk.html

[import]uid: 3826 topic_id: 21153 reply_id: 83740[/import]

try this, not sure if it’s exactly what you want

[lua]local _W = display.contentWidth
local _H = display.contentHeight
local body = display.newCircle( _W * 0.5, _H * 0.5, 100 )

function foo( )
transition.to( body, { time = 100, alpha = 0.0, onComplete =
function( )
transition.to( body, { time = 100, alpha = 1.0, onComplete = foo( ) } )
end
} )
end

foo( )[/lua] [import]uid: 114118 topic_id: 21153 reply_id: 83744[/import]

thanks! helped me alot! [import]uid: 118567 topic_id: 21153 reply_id: 83892[/import]