Author Topic: [not a bug] multiple animations in die skill ( svn 2655 )  (Read 597 times)

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
[not a bug] multiple animations in die skill ( svn 2655 )
« on: 16 October 2011, 23:59:18 »
If you have two different animations for the die skill and the unit gets killed, the dead body flips between the two animation end states .
« Last Edit: 29 October 2011, 15:03:37 by tomreyn »
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
Re: multiple animations in die skill ( svn 2655 )
« Reply #1 on: 17 October 2011, 04:14:10 »
Yes, when using multiple animations for die skills you need to do something special in the xml to avoid this:

Code: [Select]
<animation-random-cycle-maxcount value="1" />
example taken from japanese faction:

Code: [Select]
        <skill>
<type value="die"/>
<name value="die_skill"/>
<ep-cost value="0"/>
<speed value="60"/>
<anim-speed value="70"/>
<animation-random-cycle-maxcount value="1" />
<animation path="../castle/models/nagae_death.g3d"/>
<animation path="../castle/models/nagae_deathb.g3d"/>
<animation path="../castle/models/nagae_deathc.g3d"/>
<sound enabled="true" start-time="0">
<sound-file path="sounds/swordman_die1.wav"/>
<sound-file path="sounds/swordman_die2.wav"/>
</sound>
<fade value="false"/>
</skill>
This will ensure that the die animation does no switch once it is selected.

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
Re: ( not a bug )multiple animations in die skill ( svn 2655 )
« Reply #2 on: 17 October 2011, 09:31:49 »
Thanks! I didn't know that.
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

 

anything