Quick Links: Download Gideros Studio | Gideros Documentation | Gideros community chat | DONATE
transition.to, alpha — Gideros Forum

transition.to, alpha

duke2017duke2017 Member
edited August 2012 in General questions
Please tell me a simple way the appearance of objects is similar transition.to in corona sdk. I want to object to appear gradually or easing discoloration from one to another color(for example to red, like object heating)

in corona its looks like:
shield= display.newRect( 180, 220, 10, 80 )
shield:setFillColor(150,0,50,80)
shield.name="gate"
shield.alpha = 0
transition.to( shield, { alpha=1, time=150 } ) -- object appears gradually
physics.addBody( shield, "static", lipElement )
group:insert( shield )

Working with the visibility of the object over time is possible only through MovieClip or are there other decision?

Comments

Sign In or Register to comment.