anyone good at coding animations?
#1
Posted 25 April 2005 - 07:26 PM
However, he only does the animation when he is NOT selected. So he does the animation correctly if I unselect him (for instance clicking another unit) as soon as I activate the special ability, but he doesn't do the animation if I keep selecting him after activating the special ability.
I'm pretty sure that it's something to with AnimationState = SELECTED, so I took out AnimationState = SELECTED completely and then he does the animation even if hes selected, however it isn't a nice way because there will be no "selected" animation obviously.
Does anybody have any idea for this?
#2
Posted 25 April 2005 - 07:35 PM
I added a special ability to one of hero and I want my hero to behave a certain animation when he uses that special ability, so I added an animationstate for that special ability.
However, he only does the animation when he is NOT selected. So he does the animation correctly if I unselect him (for instance clicking another unit) as soon as I activate the special ability, but he doesn't do the animation if I keep selecting him after activating the special ability.
I'm pretty sure that it's something to with AnimationState = SELECTED, so I took out AnimationState = SELECTED completely and then he does the animation even if hes selected, however it isn't a nice way because there will be no "selected" animation obviously.
Does anybody have any idea for this?
Try:
AnimationState = SELECTED USING_SPECIAL_ABILITY
or if it's a special weapon:
AnimationState = SELECTED SPECIAL_WEAPON_n (n being the special weapon number)
#3
Posted 25 April 2005 - 07:47 PM
I tried that but it didn't work.
I think it's because the special ability that I added is a one-off abilty, not something like Aragorn's blade master or Legolas's knife fighter.
I'm doing something like giving Legolas's arrow storm ability to Elrond.
#4
Posted 25 April 2005 - 08:12 PM
AnimationState = USING_SPECIAL_ABILITY SELECTED
I'm guessing that you'd have to duplicate the anims for when he's not selected but doing his power, and add selected after all animation states. e.g.
UNPACKING PACKING_TYPE_1 SELECTED
PREPARING PACKING_TYPE_1 SELECTED
PACKING PACKING_TYPE_1 SELECTED
Bit of a hassle but it might do it. (don't know why legolas hasn't got it though??)
#5
Posted 25 April 2005 - 08:54 PM
#6 Guest_Shelob leader of |MeMw|_*
Posted 25 April 2005 - 09:04 PM
Come on, i won't tell anyone....
#7
Posted 25 April 2005 - 10:37 PM
And Shelob, if he told you here he would tell everyone.
#8 Guest_shelob_*
Posted 25 April 2005 - 11:20 PM
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users