Jump to content
  • 0

Second DeathAnimation Not Working


Ultra Fatality

Question

Yet Another problem has been made i can not get the second death animation to work it will play but then just go back to the normal death state and for those who don't know what the second death animation is, its the lay on front animations instead of on your back I'm at a complete lost so if anyone could help

 

That'd Be Great.......

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

Can you explain the code a bit and how it works cause im kinda lost on what to edit and how to put it in exactly

 

That is just an example and you don't have to use that exactly.

 

This is the original default Statedef 5150 MUGEN code in everybody's mugen1.0/data/common1.cns:

; Downed get-hit (lying defeated)
[Statedef 5150]
type    = L
movetype= H
physics = N
sprpriority = -3
ctrl = 0

[State 5150, 1] ;Normal anim
type = ChangeAnim
triggerall = Time = 0
triggerall = SelfAnimExist(5140)
trigger1 = (anim != [5111,5119]) && (anim != [5171,5179])
trigger2 = !SelfAnimExist(5140 + (anim % 10))
value = 5140

[State 5150, 3] ;Hit up type anim
type = ChangeAnim
trigger1 = Time = 0
trigger1 = (anim = [5111,5119]) || (anim = [5171,5179])
trigger1 = SelfAnimExist(5140 + (anim % 10))
value = 5140 + (anim % 10)

[State 5150, 4] ;Match over anim
type = ChangeAnim
persistent = 0
;trigger1 = Time = 0
trigger1 = MatchOver = 1
trigger1 = Anim = [5140,5149]
trigger1 = SelfAnimExist(anim+10)
value = anim+10

[State 5150, 5] ;Switch to 5110 if liedead anim does not exist
type = ChangeAnim
trigger1 = Time = 0
trigger1 = Anim != [5140,5159]
trigger1 = Anim != [5110,5119]
value = 5110

[State 5150, 6] ;Friction
type = VelMul
trigger1 = 1
x = 0.85

[State 5150, 7] ;Friction
type = VelSet
trigger1 = abs(Vel x) < Const(movement.down.friction.threshold)
persistent = 0
x = 0

[State 5150, 8]
type = NotHitBy
trigger1 = 1
value = SCA
time = 1

Nothing much different from the MUGEN1.0 default Statedef 5150.

 

The overridden Statedef 5150 I posted earlier, was based on this default one.  All I did was, adding a ChangeAnim to the custom OverKill animation 5159, when my Custom DDV Shadow Master is put into Statedef 5158 right before it enters this "; Downed get-hit (lying defeated)" Statedef 5150.

Statedef 5158 is a state which is the result by the OverKill conditions (you don't need to worry about this Statedef 5158 because you probably have your own different conditions to let your MUGEN character enter your overridden Statedef 5150).

 

So, my Custom DDV Shadow Master overridden Statedef 5150 just does either one (1) things:

1. when a custom condition is met, the Statedef 5150 animation is changed to the second (2nd) one;

2. when a custom condition is not met, the Statedef 5150 animation uses the default one.

 

Since you didn't mention what custom condition(s) yours has to met in order to make your second (2nd) death animation take place, so I just tried to use my Custom DDV Shadow Master overridden Statedef 5150 as an example here.

Link to comment
Share on other sites

  • 0

This is what I did with my Custom Shadow Master, for its OverKill animation (SNES Double Dragon V characters have OverKill ending):

; Overriding Statedef 5150......
; Downed get-hit (lying defeated)
[Statedef 5150]
type    = L
movetype= H
physics = N
sprpriority = -3
ctrl = 0

[State 5150, 1] ;OverKill anim
type = ChangeAnim
triggerall = prevstateno = 5158  ;;;;; you may put your own Trigger for your need
trigger1 = Time = 0
value = 5159

[State 5150, 1] ;Normal anim
type = ChangeAnim
triggerall = prevstateno != 5158   ;;;;; you may put your own Trigger for your need
triggerall = Time = 0
triggerall = SelfAnimExist(5140)
trigger1 = (anim != [5111,5119]) && (anim != [5171,5179])
trigger2 = !SelfAnimExist(5140 + (anim % 10))
value = 5140

[State 5150, 3] ;Hit up type anim
type = ChangeAnim
triggerall = prevstateno != 5158    ;;;;; you may put your own Trigger for your need
trigger1 = Time = 0
trigger1 = (anim = [5111,5119]) || (anim = [5171,5179])
trigger1 = SelfAnimExist(5140 + (anim % 10))
value = 5140 + (anim % 10)

[State 5150, 4] ;Match over anim
type = ChangeAnim
triggerall = prevstateno != 5158    ;;;;; you may put your own Trigger for your need
persistent = 0
;trigger1 = Time = 0
trigger1 = MatchOver = 1
trigger1 = Anim = [5140,5149]
trigger1 = SelfAnimExist(anim+10)
value = anim+10

[State 5150, 5] ;Switch to 5110 if liedead anim does not exist
type = ChangeAnim
triggerall = prevstateno != 5158   ;;;;; you may put your own Trigger for your need
trigger1 = Time = 0
trigger1 = Anim != [5140,5159]
trigger1 = Anim != [5110,5119]
value = 5110

[State 5150, 6] ;Friction
type = VelMul
trigger1 = 1
x = 0.85

[State 5150, 7] ;Friction
type = VelSet
trigger1 = abs(Vel x) < Const(movement.down.friction.threshold)
persistent = 0
x = 0

[State 5150, 8]
type = NotHitBy
trigger1 = 1
value = SCA
time = 1
Link to comment
Share on other sites

  • 0

 

This is what I did with my Custom Shadow Master, for its OverKill animation (SNES Double Dragon V characters have OverKill ending):

; Overriding Statedef 5150......
; Downed get-hit (lying defeated)
[Statedef 5150]
type    = L
movetype= H
physics = N
sprpriority = -3
ctrl = 0

[State 5150, 1] ;OverKill anim
type = ChangeAnim
triggerall = prevstateno = 5158  ;;;;; you may put your own Trigger for your need
trigger1 = Time = 0
value = 5159

[State 5150, 1] ;Normal anim
type = ChangeAnim
triggerall = prevstateno != 5158   ;;;;; you may put your own Trigger for your need
triggerall = Time = 0
triggerall = SelfAnimExist(5140)
trigger1 = (anim != [5111,5119]) && (anim != [5171,5179])
trigger2 = !SelfAnimExist(5140 + (anim % 10))
value = 5140

[State 5150, 3] ;Hit up type anim
type = ChangeAnim
triggerall = prevstateno != 5158    ;;;;; you may put your own Trigger for your need
trigger1 = Time = 0
trigger1 = (anim = [5111,5119]) || (anim = [5171,5179])
trigger1 = SelfAnimExist(5140 + (anim % 10))
value = 5140 + (anim % 10)

[State 5150, 4] ;Match over anim
type = ChangeAnim
triggerall = prevstateno != 5158    ;;;;; you may put your own Trigger for your need
persistent = 0
;trigger1 = Time = 0
trigger1 = MatchOver = 1
trigger1 = Anim = [5140,5149]
trigger1 = SelfAnimExist(anim+10)
value = anim+10

[State 5150, 5] ;Switch to 5110 if liedead anim does not exist
type = ChangeAnim
triggerall = prevstateno != 5158   ;;;;; you may put your own Trigger for your need
trigger1 = Time = 0
trigger1 = Anim != [5140,5159]
trigger1 = Anim != [5110,5119]
value = 5110

[State 5150, 6] ;Friction
type = VelMul
trigger1 = 1
x = 0.85

[State 5150, 7] ;Friction
type = VelSet
trigger1 = abs(Vel x) < Const(movement.down.friction.threshold)
persistent = 0
x = 0

[State 5150, 8]
type = NotHitBy
trigger1 = 1
value = SCA
time = 1

 

Alright im trying this right now to see what happens

Link to comment
Share on other sites

  • 0

That is just an example and you don't have to use that exactly.

 

This is the original default Statedef 5150 MUGEN code in everybody's mugen1.0/data/common1.cns:

; Downed get-hit (lying defeated)
[Statedef 5150]
type    = L
movetype= H
physics = N
sprpriority = -3
ctrl = 0

[State 5150, 1] ;Normal anim
type = ChangeAnim
triggerall = Time = 0
triggerall = SelfAnimExist(5140)
trigger1 = (anim != [5111,5119]) && (anim != [5171,5179])
trigger2 = !SelfAnimExist(5140 + (anim % 10))
value = 5140

[State 5150, 3] ;Hit up type anim
type = ChangeAnim
trigger1 = Time = 0
trigger1 = (anim = [5111,5119]) || (anim = [5171,5179])
trigger1 = SelfAnimExist(5140 + (anim % 10))
value = 5140 + (anim % 10)

[State 5150, 4] ;Match over anim
type = ChangeAnim
persistent = 0
;trigger1 = Time = 0
trigger1 = MatchOver = 1
trigger1 = Anim = [5140,5149]
trigger1 = SelfAnimExist(anim+10)
value = anim+10

[State 5150, 5] ;Switch to 5110 if liedead anim does not exist
type = ChangeAnim
trigger1 = Time = 0
trigger1 = Anim != [5140,5159]
trigger1 = Anim != [5110,5119]
value = 5110

[State 5150, 6] ;Friction
type = VelMul
trigger1 = 1
x = 0.85

[State 5150, 7] ;Friction
type = VelSet
trigger1 = abs(Vel x) < Const(movement.down.friction.threshold)
persistent = 0
x = 0

[State 5150, 8]
type = NotHitBy
trigger1 = 1
value = SCA
time = 1

Nothing much different from the MUGEN1.0 default Statedef 5150.

 

The overridden Statedef 5150 I posted earlier, was based on this default one.  All I did was, adding a ChangeAnim to the custom OverKill animation 5159, when my Custom DDV Shadow Master is put into Statedef 5158 right before it enters this "; Downed get-hit (lying defeated)" Statedef 5150.

Statedef 5158 is a state which is the result by the OverKill conditions (you don't need to worry about this Statedef 5158 because you probably have your own different conditions to let your MUGEN character enter your overridden Statedef 5150).

 

So, my Custom DDV Shadow Master overridden Statedef 5150 just does either one (1) things:

1. when a custom condition is met, the Statedef 5150 animation is changed to the second (2nd) one;

2. when a custom condition is not met, the Statedef 5150 animation uses the default one.

 

Since you didn't mention what custom condition(s) yours has to met in order to make your second (2nd) death animation take place, so I just tried to use my Custom DDV Shadow Master overridden Statedef 5150 as an example here.

 

 

It worked man good looking out my friend now my guy is 100% well maybe 95 idk but yeah thanks a lot

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...