Animation Help
Does anyone have experience or know a Guide to learning the Animation system in wow. I need some animations, mainly a Auto-Cast, and Spell Proc animation. If anyone knows how to create them, either the same as the default or from scratch I'd be greatly appreciative, and it'd help me out immensely.
|
I know the animation system, I don't know if there are any guides for it but I could provide you with an example. I honestly couldn't tell you how I picked it up myself.
I believe the animations you're talking about are contained in ActionBarFrame.xml, specifically under "ActionBarButtonSpellActivationAlert". The "ants" used for the proc animation is actually just a texture that's displayed one section at a time sort of like a flip-book. First you should look at AnimationGroups (specifically CreateAnimation) and the Animation widget. I'll try and provide a basic example here.. Lua Code:
|
Thanks I'll look into that, I think I found what I was looking for as far as the Flash and AutoCast animations in ActionButton.xml getting that to all work exactly how I want is another story but I think I got how they're working sorta, if only the blizzard code didn't jump all over lol. Abstraction is awesome until you're trying to read someone elses code lol. But I'm going to still learn Animations and what you've posted will definitely help since they're arnt many guides to animations. The things I could do with custom Animations would be pretty cool. If only there were a way to arc translations easier, rather then needing to step through the groups, maybe in wow 5.0.
|
I wrote some stuff on that topic.
For more check: http://www.wowinterface.com/forums/s...ad.php?t=35104 The only thing that you need is a so called end-state after each animation. Once the animation is finished and it is not set to repeat you need to call this state in the OnFinished event of the animation. Basically you can do all this: http://wowprogramming.com/docs/widgets/Alpha http://wowprogramming.com/docs/widgets/Rotation http://wowprogramming.com/docs/widgets/Scale http://wowprogramming.com/docs/widgets/Translation Once you are finished you need to set the texture values in the OnFinished event. (Example: If you have an animation that fades your animation you need to call SetAlpha() with the corresponding alpha value in the OnFinished event.) What you probably want is a bouncing animation that adjusts scale and alpha of a texture that bounces like 3-4 times with decreasing values and fades afterwards. |
Ah, good. That's probably more helpful. I didn't know there was a tutorial section.
|
lol ya thanks Zork I found your topic through google but didn't know exactly what was going on in it. But now that i've seen some of it work I get the basic Idea behind it. I was looking at the code for the spell proc and it had me so confused until I realized after messing with it for about an hour that it was 2 different parts, and the animation wasn't actually looping like it looks lol. I hope to have a working spell proc animation up and working soon for my addon, because without it, it looks a little plain lol.
Thanks for the help guys. |
All times are GMT -6. The time now is 02:34 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI