Author Topic: Tweening a Sprite's Brightness  (Read 3704 times)

creepgin

  • Guest
Tweening a Sprite's Brightness
« 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!

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Tweening a Sprite's Brightness
« Reply #1 on: November 14, 2012, 09:25:00 PM »
Brightness? The UI has no "brightness".

creepgin

  • Guest
Re: Tweening a Sprite's Brightness
« Reply #2 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.

Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
Re: Tweening a Sprite's Brightness
« Reply #3 on: November 15, 2012, 05:40:43 PM »
Yeah, a different sprite on top that you just tween the alpha on.

Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
Re: Tweening a Sprite's Brightness
« Reply #4 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.