Hi Guys,
I have a requirement where a rectangle needs to glow with a specific color. To keep it simple and consume less processing, I went the mediocre way by creating a white rectangle and changed its color and then : -
private function glowFull(): void {
TweenMax.to(glowRectImg, 0.3, {
alpha: 1,
onComplete: glowLow
});
}
private function glowLow(): void {
TweenMax.to(glowRectImg, 0.3, {
alpha: 0.4,
onComplete: glowFull
});
}
the issue is I am facing performance issue, the animations are not smooth. Please note that there will 1 - 20 rectangles glowing at the same time! What could be wrong here, I am using greensock's TweenMax.