News:

Please help making MegaGlest rock-stable by testing the pre-release snapshots.

Main Menu

[not a bug] multiple animations in die skill ( svn 2655 )

Started by titi, 16 October 2011, 23:59:18

titi

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 .



Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

softcoder

Yes, when using multiple animations for die skills you need to do something special in the xml to avoid this:

<animation-random-cycle-maxcount value="1" />

example taken from japanese faction:

        <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




Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios