Jump to content


Photo

anyone good at coding animations?


  • Please log in to reply
7 replies to this topic

#1 Vapula!

Vapula!
  • Members
  • 34 posts

Posted 25 April 2005 - 07:26 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?

#2 pabtyf

pabtyf

    T3A Forum Moderator

  • Project Team
  • 209 posts
  • Location:wales, uk
  • Projects:Finally finished my degree!!!!
  • Division:T3A Staff

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?

<{POST_SNAPBACK}>



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 Vapula!

Vapula!
  • Members
  • 34 posts

Posted 25 April 2005 - 07:47 PM

thx pabtyf.
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 pabtyf

pabtyf

    T3A Forum Moderator

  • Project Team
  • 209 posts
  • Location:wales, uk
  • Projects:Finally finished my degree!!!!
  • Division:T3A Staff

Posted 25 April 2005 - 08:12 PM

Did you try putting SELECTED after the ability:

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 Vapula!

Vapula!
  • Members
  • 34 posts

Posted 25 April 2005 - 08:54 PM

I got it working. It seems that where to add animationstates in ini matters a lot. I added new animation states after Animationstate = SELECTED but when I added them before Animationstate = SELECTED, it worked! Thanks for the help pabtyf anyways :p

#6 Guest_Shelob leader of |MeMw|_*

Guest_Shelob leader of |MeMw|_*
  • Guests

Posted 25 April 2005 - 09:04 PM

so, what was the special power you were adding to someone? huh huh?

Come on, i won't tell anyone.... :p :sad:

#7 |MeMw| Ecthelion

|MeMw| Ecthelion
  • Members
  • 86 posts
  • Projects:various |MeMw| maps/ mods

Posted 25 April 2005 - 10:37 PM

He said it was Arrow storm for Elrond, or like that.
And Shelob, if he told you here he would tell everyone.
Anything later then now isn't soon enough.

#8 Guest_shelob_*

Guest_shelob_*
  • Guests

Posted 25 April 2005 - 11:20 PM

:dry: :sad: :unsure:




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users