View Single Post
03-01-16, 12:45 PM   #51
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 1,740
Not sure if you noticed it. The wierd bug that you fixed in the demo with a OnUpdate function that you call onPlay and disable it thereafter can be fixed by just calling :Pause() after :Play().

What cannot be removed though is the delay. No clue why it does not animate without it.

Lua Code:
  1. --animationgroup
  2.         local group = wedge:CreateAnimationGroup()
  3.         local rotation = group:CreateAnimation('Rotation')
  4.         rotation:SetOrigin('BOTTOMRIGHT', 0, 0)
  5.         rotation:SetDuration(0)
  6.         rotation:SetEndDelay(1)
  7.         group:Play()
  8.         group:Pause()
  9.         spinner._rotation = rotation
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
  Reply With Quote