Folks,
When I was putting together my popup class (see
this post), I noticed that use of the swapValues option in a GTween seems to cause an unpleasant flicker at the start of the animation. Actually, I've noticed the effect before but it slipped my mind until now.
You can see the effect in my popup demo video (below) at times 1:10 and 3:04 and 3:11. When the popup is dismissed, I use swapValues to reverse the GTween used for the entry transition (the flicker actually occurs on all exit transitions but the video doesn't pick it up every case).
Any ideas?
Best regards
Comments
The problem is caused in GTween:swapValues() where the setPosition(self._position) is failing because it already thinks that the position is at 0. Hence the attempt to move to the starting position before the animation commences is being ignored. This causes the brief flicker.
You can fix it by replacing GTween:swapValues() in gtween.lua:
Best regards
https://github.com/gideros/GTween
Best regards
On the other hand, let me test this case with original GTween. I wonder if it also has this bug.
Best regards
http://www.createjs.com/#!/TweenJS
https://github.com/CreateJS/TweenJS/
It's also under the MIT license and I think it's more understandable and cleaner then GTween.
Likes: hnim, alexzheng
https://sites.google.com/site/xraystudiogame