Author Topic: TweenLetters ignores Shadow opacity  (Read 2152 times)

toyob

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 1
  • Posts: 7
    • View Profile
TweenLetters ignores Shadow opacity
« on: July 27, 2017, 05:38:32 AM »
I have noticed that the TweenLetters script doesn't use the current Shadow (effect) opacity value. Instead it displays the effect as the opacity was full (fully black in case of a black color shadow). When the TweenLetters is over, the shadow opacity goes back to the preset value, resulting in a visual glitch.

ArenMook, any ideas of a quick fix? Thanks!

toyob

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 1
  • Posts: 7
    • View Profile
Re: TweenLetters ignores Shadow opacity
« Reply #1 on: July 27, 2017, 06:02:44 AM »
Also, if there's a Start Delay specified in the Tween Labels script, it does the following:

1) Enters the first frame of the upcoming tween animation
2) Pauses for the X seconds

I believe there should be an option NOT to enter the first frame of the animation, before the StartDelay elapses.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: TweenLetters ignores Shadow opacity
« Reply #2 on: August 03, 2017, 03:40:54 AM »
This would be a question for NeilM, as he manages that particular script. I'll send him the link so he can reply.

NeilM

  • Global Moderator
  • Newbie
  • *****
  • Thank You
  • -Given: 0
  • -Receive: 7
  • Posts: 16
    • View Profile
Re: TweenLetters ignores Shadow opacity
« Reply #3 on: August 03, 2017, 09:33:57 AM »
The quick fix for the alpha is to change line 154 of TweenLetters.cs to
  1. c.a *= lerpAlpha;

It was missing the multiplication.

NeilM

  • Global Moderator
  • Newbie
  • *****
  • Thank You
  • -Given: 0
  • -Receive: 7
  • Posts: 16
    • View Profile
Re: TweenLetters ignores Shadow opacity
« Reply #4 on: August 03, 2017, 09:40:52 AM »
What effect are you attempting to create by not playing the first frame during the delay?  If that happens then the text will appear as a normal label, then snap to the first frame of animation.