View Single Post
02-01-14, 09:54 AM   #6
Resike
A Pyroguard Emberseer
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 1,290
Originally Posted by Phanx View Post
No, he means that if you do:
Code:
local frame = CreateFrame("Frame")
frame:SetAlpha(0)

local group = frame:CreateAnimationGroup()

local anim = group:CreateAnimation("ALPHA")
anim:SetChange(1)
anim:SetDuration(1)

group:Play()
... the frame will fade in from 0% to 100% opacity over 1 second, but at the end of the 1 second, it will drop back to the original 0% opacity. He wants an option for it to remain at the 100% opacity state, without having to add an OnFinished script that manually applies that value. For an alpha animation, that's obviously easy, but for an animation group that's moving and rotating whole frames, for example, the whole point of using the animation is so that you don't have to do all the math yourself to move and rotate the frame, so it's annoying to have to manually duplicate the final state of the animation in an OnFinished script.

Looping would not help here, as a loop would just make the frame fade in and out repeatedly, which is not the desired behavior.
I see, sadly animationgroups have so many issues with them, thats why so few developer uses it. They basically only created for the spell activation overlay effects, and it's even buggy there.
  Reply With Quote