I've tested the blinking effect for a Shape with the GTween & MovieClip approach. In my game I'm trying to stop it when the time is over but the blinking goes on.
For the GTween I add a "complete" event listener in order to setPaused(true) but it doesn't stop. For the MovieClip I stop it (function "stop()") but the clip doesn't stop either.
Comments
It's a wonderful class
http://appcodingeasy.com/Gideros-Mobile/Gideros-GTween-with-easing
Likes: ar2rsawseen
Try this:
local TestText = TextField.new(nil,"Blink!")
local BlinkText = MovieClip.new{
{1,30,TestText,{alpha={1,0,"linear"}}},
{31,60,TestText,{alpha={0,1,"linear"}}}
}
BlinkText:setGotoAction(60, 1)
BlinkText:setY(100)
BlinkText:setScale(5)
stage:addChild(BlinkText)
Likes: ar2rsawseen, JDoef
Hi @ar2rsawseen , @amin13a
I've tested the blinking effect for a Shape with the GTween & MovieClip approach.
In my game I'm trying to stop it when the time is over but the blinking goes on.
For the GTween I add a "complete" event listener in order to setPaused(true) but it doesn't stop. For the MovieClip I stop it (function "stop()") but the clip doesn't stop either.
How do I could stop the effect?
Thanks,
David.
https://play.google.com/store/apps/developer?id=SimplesApps
http://www.amazon.com/gp/mas/dl/android?p=com.simplesapps.actionbasket
https://itunes.apple.com/artist/david-rodriguez/id763996989
Hi @ar2rsawseen , @amin13a again.
It's my mistake because I was creating different clips every call, therefore with one stop() I only stop one clip (one call).
https://play.google.com/store/apps/developer?id=SimplesApps
http://www.amazon.com/gp/mas/dl/android?p=com.simplesapps.actionbasket
https://itunes.apple.com/artist/david-rodriguez/id763996989