Fading animation
Hello there. I'm trying to copy the same animation as the buffs when are about to expire.
This is my attempt: Lua Code:
The animation from "fadeIn" to "fadeOut" works well, but the transition from "fadeOut" to "fadeIn" seems too sharp. Any suggestions? |
When expiring buffs flash, Blizzard doesn't use any animation functions, they just change the alpha every frame. Here's the complete math behind it if you want to try matching it with animations or just use it:
Lua Code:
Then they use AuraButton#:SetAlpha(BuffFrame.BuffAlphaValue) in the individual OnUpdate functions for each icon if timeLeft < 31 seconds, which means all expiring buffs pulse in sync with each other. |
Magnificent, isn't?
Lua Code:
|
It looks like (for using Animations at least) you want something more like:
Lua Code:
|
All times are GMT -6. The time now is 02:08 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI