Animation style upgrade: use duration=

This commit is contained in:
Benoît Timbert 2007-11-10 22:36:34 +00:00
parent bad662cc57
commit 84316af00a
6 changed files with 67 additions and 117 deletions

View file

@ -38,31 +38,27 @@ Special Notes:"+{SPECIAL_NOTES_REGENERATES}
[attack_filter]
name=hammer
[/attack_filter]
start_time=-300
[frame]
begin=-300
end=-275
duration=25
image="units/trolls/warrior.png"
[/frame]
[frame]
begin=-275
end=-200
duration=75
image="units/trolls/warrior-attack-1.png"
[/frame]
[frame]
begin=-200
end=-150
duration=50
image="units/trolls/warrior-attack-2.png"
[/frame]
[frame]
begin=-150
end=-75
duration=25
image="units/trolls/warrior-attack-3.png"
[/frame]
[if]
hits=yes
[frame]
begin=-75
end=100
duration=175
image="units/trolls/warrior-attack-4.png"
sound=mace.wav
[/frame]
@ -70,25 +66,21 @@ Special Notes:"+{SPECIAL_NOTES_REGENERATES}
[else]
hits=no
[frame]
begin=-75
end=100
duration=175
image="units/trolls/warrior-attack-4.png"
sound={SOUND_LIST:MISS}
[/frame]
[/else]
[frame]
begin=100
end=175
duration=75
image="units/trolls/warrior-attack-3.png"
[/frame]
[frame]
begin=175
end=200
duration=25
image="units/trolls/warrior-attack-1.png"
[/frame]
[frame]
begin=200
end=250
duration=50
image="units/trolls/warrior.png"
[/frame]
[/attack_anim]

View file

@ -36,21 +36,19 @@ Special Notes:"+{SPECIAL_NOTES_REGENERATES}
[attack_filter]
name=club
[/attack_filter]
start_time=-300
[frame]
begin=-300
end=-275
duration=25
image="units/trolls/grunt.png"
[/frame]
[frame]
begin=-275
end=-200
duration=75
image="units/trolls/grunt-attack-1.png"
[/frame]
[if]
hits=yes
[frame]
begin=-200
end=-125
duration=75
image="units/trolls/grunt-attack-2.png"
sound=club.ogg
[/frame]
@ -58,30 +56,25 @@ Special Notes:"+{SPECIAL_NOTES_REGENERATES}
[else]
hits=no
[frame]
begin=-200
end=-125
duration=75
image="units/trolls/grunt-attack-2.png"
sound={SOUND_LIST:MISS}
[/frame]
[/else]
[frame]
begin=-125
end=-50
duration=75
image="units/trolls/grunt-attack-3.png"
[/frame]
[frame]
begin=-50
end=45
duration=95
image="units/trolls/grunt-attack-4.png"
[/frame]
[frame]
begin=45
end=125
duration=80
image="units/trolls/grunt-attack-3.png"
[/frame]
[frame]
begin=125
end=200
duration=75
image="units/trolls/grunt-defend.png"
[/frame]
[/attack_anim]

View file

@ -52,11 +52,11 @@ Special Notes: though unwieldy, a stone thrown by one of these monsters is much
image="projectiles/stone.png"
image_diagonal="projectiles/stone.png"
[/missile_frame]
start_time=-1000
[if]
hits=yes
[frame]
begin=-1000
end=-600
duration=400
image="units/trolls/lobber.png"
sound=sling-big.ogg
[/frame]
@ -64,30 +64,25 @@ Special Notes: though unwieldy, a stone thrown by one of these monsters is much
[else]
hits=no
[frame]
begin=-1000
end=-600
duration=400
image="units/trolls/lobber.png"
sound=sling-big-miss.ogg
[/frame]
[/else]
[frame]
begin=-600
end=-400
duration=200
image="units/trolls/lobber-attack-ranged1.png"
[/frame]
[frame]
begin=-400
end=-200
duration=200
image="units/trolls/lobber-attack-ranged2.png"
[/frame]
[frame]
begin=-200
end=-100
duration=100
image="units/trolls/lobber-defend.png"
[/frame]
[frame]
begin=-100
end=0
duration=100
image="units/trolls/lobber.png"
[/frame]
[/attack_anim]
@ -95,16 +90,15 @@ Special Notes: though unwieldy, a stone thrown by one of these monsters is much
[attack_filter]
name=fist
[/attack_filter]
start_time=-200
[frame]
begin=-200
end=-150
duration=50
image="units/trolls/lobber.png"
[/frame]
[if]
hits=yes
[frame]
begin=-150
end=100
duration=250
image="units/trolls/lobber-attack-melee.png"
sound=fist.ogg
[/frame]
@ -112,15 +106,13 @@ Special Notes: though unwieldy, a stone thrown by one of these monsters is much
[else]
hits=no
[frame]
begin=-150
end=100
duration=250
image="units/trolls/lobber-attack-melee.png"
sound={SOUND_LIST:MISS}
[/frame]
[/else]
[frame]
begin=100
end=200
duration=100
image="units/trolls/lobber.png"
[/frame]
[/attack_anim]

View file

@ -36,21 +36,19 @@ Special Notes:"+{SPECIAL_NOTES_REGENERATES}
[attack_filter]
name=club
[/attack_filter]
start_time=-300
[frame]
begin=-300
end=-275
duration=25
image="units/trolls/grunt.png"
[/frame]
[frame]
begin=-275
end=-200
duration=75
image="units/trolls/grunt-attack-1.png"
[/frame]
[if]
hits=yes
[frame]
begin=-200
end=-125
duration=75
image="units/trolls/grunt-attack-2.png"
sound=club.ogg
[/frame]
@ -58,30 +56,25 @@ Special Notes:"+{SPECIAL_NOTES_REGENERATES}
[else]
hits=no
[frame]
begin=-200
end=-125
duration=75
image="units/trolls/grunt-attack-2.png"
sound={SOUND_LIST:MISS}
[/frame]
[/else]
[frame]
begin=-125
end=-50
duration=75
image="units/trolls/grunt-attack-3.png"
[/frame]
[frame]
begin=-50
end=45
duration=95
image="units/trolls/grunt-attack-4.png"
[/frame]
[frame]
begin=45
end=125
duration=80
image="units/trolls/grunt-attack-3.png"
[/frame]
[frame]
begin=125
end=200
duration=75
image="units/trolls/grunt-defend.png"
[/frame]
[/attack_anim]

View file

@ -38,31 +38,27 @@ Special Notes:"+{SPECIAL_NOTES_REGENERATES}
[attack_filter]
name=hammer
[/attack_filter]
start_time=-300
[frame]
begin=-300
end=-275
duration=25
image="units/trolls/warrior.png"
[/frame]
[frame]
begin=-275
end=-200
duration=75
image="units/trolls/warrior-attack-1.png"
[/frame]
[frame]
begin=-200
end=-150
duration=50
image="units/trolls/warrior-attack-2.png"
[/frame]
[frame]
begin=-150
end=-75
duration=75
image="units/trolls/warrior-attack-3.png"
[/frame]
[if]
hits=yes
[frame]
begin=-75
end=100
duration=175
image="units/trolls/warrior-attack-4.png"
sound=mace.wav
[/frame]
@ -70,25 +66,21 @@ Special Notes:"+{SPECIAL_NOTES_REGENERATES}
[else]
hits=no
[frame]
begin=-75
end=100
duration=175
image="units/trolls/warrior-attack-4.png"
sound={SOUND_LIST:MISS}
[/frame]
[/else]
[frame]
begin=100
end=175
duration=75
image="units/trolls/warrior-attack-3.png"
[/frame]
[frame]
begin=175
end=200
duration=25
image="units/trolls/warrior-attack-1.png"
[/frame]
[frame]
begin=200
end=250
duration=50
image="units/trolls/warrior.png"
[/frame]
[/attack_anim]

View file

@ -34,44 +34,37 @@ Special Notes:"+{SPECIAL_NOTES_REGENERATES}
[/attack]
{DEFENSE_ANIM "units/trolls/whelp-defend.png" "units/trolls/whelp-defend-2.png" {SOUND_LIST:TROLL_HIT} }
[death]
[frame]
begin=0
end=100
start_time=0
[frame]
duration=100
image="units/trolls/whelp-die-1.png"
[/frame]
[frame]
begin=100
end=200
duration=100
image="units/trolls/whelp-die-2.png"
[/frame]
[frame]
begin=200
end=300
duration=100
image="units/trolls/whelp-die-3.png"
[/frame]
[frame]
begin=300
end=400
duration=100
image="units/trolls/whelp-die-4.png"
[/frame]
[frame]
begin=400
end=600
duration=200
image="units/trolls/whelp-skeleton.png"
[/frame]
[frame]
begin=600
end=700
duration=100
image="units/trolls/whelp-die-5.png"
[/frame]
[frame]
begin=700
end=800
duration=100
image="units/trolls/whelp-die-6.png"
[/frame]
[frame]
begin=800
end=1050
duration=250
image="units/trolls/whelp-die-7.png"
[/frame]
[/death]
@ -143,16 +136,15 @@ Special Notes:"+{SPECIAL_NOTES_REGENERATES}
[attack_filter]
name=fist
[/attack_filter]
start_time=-250
[frame]
begin=-250
end=-175
duration=100
image="units/trolls/whelp-attack-1.png"
[/frame]
[if]
hits=yes
[frame]
begin=-150
end=-25
duration=125
image="units/trolls/whelp-attack-2.png"
sound=fist.ogg
[/frame]
@ -160,25 +152,21 @@ Special Notes:"+{SPECIAL_NOTES_REGENERATES}
[else]
hits=no
[frame]
begin=-150
end=-25
duration=125
image="units/trolls/whelp-attack-2.png"
sound={SOUND_LIST:MISS}
[/frame]
[/else]
[frame]
begin=-25
end=75
duration=100
image="units/trolls/whelp-attack-3.png"
[/frame]
[frame]
begin=75
end=150
duration=75
image="units/trolls/whelp-attack-1.png"
[/frame]
[frame]
begin=150
end=200
duration=50
image="units/trolls/whelp.png"
[/frame]
[/attack_anim]