Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: creepgin on November 14, 2012, 08:31:39 PM

Title: Tweening a Sprite's Brightness
Post by: creepgin on November 14, 2012, 08:31:39 PM
Is there any recommended way to tween a sprite's brightness?

Currently I'm thinking of overlaying a similar sized white sprite ontop and tweening it's alpha.

I'm quite new to NGUI, sorry if I missed anything obvious!
Title: Re: Tweening a Sprite's Brightness
Post by: ArenMook on November 14, 2012, 09:25:00 PM
Brightness? The UI has no "brightness".
Title: Re: Tweening a Sprite's Brightness
Post by: creepgin on November 14, 2012, 10:16:24 PM
Ofc not. I'm just asking for producing the effect. Guess overlaying an extra sprite is the way to go.
Title: Re: Tweening a Sprite's Brightness
Post by: Nicki on November 15, 2012, 05:40:43 PM
Yeah, a different sprite on top that you just tween the alpha on.
Title: Re: Tweening a Sprite's Brightness
Post by: Nicki on November 15, 2012, 05:41:35 PM
Unless you want it darker, then you can tween the color property to gray/black and back up.

White is the "normal" color.