That worked for the winpose, but something weird happens: he gets stuck on the first frame, the rest of the animation doesn't play
Also, will the same thing work for the losing state without affecting the laying down one?
Check what I said above - that should bypass the "Liedown" animation. Although I think you need to use "PrevStateNo" trigger for the State Controller that bails you out of State 5150. You would probably need to create a second half to your character's animation, though, because your 1-tick spent in State 5150 will likely interrupt the animation.
I'll try that for the liedown
That worked for the winpose, but something weird happens: he gets stuck on the first frame, the rest of the animation doesn't play
Also, will the same thing work for the losing state without affecting the laying down one?
Before jumping to conclusions, I'd like to see the code you added that isn't working quite right.
Edit:
This is for the win pose. For the death animation, what altoiddealer suggested would work.
My code:
Attack:
[Statedef 6050]
type = S
movetype = A
physics = S
anim = 6050
velset = 0,0
ctrl = 0
sprpriority = 2
[State 1500, SuperPause]
type = SuperPause
trigger1 = !time
time = 60
anim = -1
pos = 17,-29
movetime = 60
darken = 1
poweradd = -3000
[State 1100, PlaySnd]
type = PlaySnd
trigger1 = AnimElem = 2
value = 6000,0
[State 3000, Energy]
type = Explod
trigger1 = animelem = 2
anim = 6051
sprpriority = 5
postype = p1
pos = 0,-90
supermove = 1
removetime = -2
ownpal = 1
[State 240, PlaySnd]
type = PlaySnd
trigger1 = AnimElem = 3
value = 200,0
[State 240, PlaySnd]
type = PlaySnd
trigger1 = AnimElem = 3
value = 200,1
[State 240, Projectile]
type = projectile
trigger1 = animelem = 6
attr = S, SP
hitflag = MAF
guardflag = MA
animtype = Back
projanim = 6052
projhitanim = 6053
projscale = 3,3
damage = 13,5
fall = 1
sparkno = -1
guard.sparkno = 0
pausetime = 0,12
ground.type = High ;Low,Trip,None
ground.slidetime = 20
ground.hittime = 20
air.hittime = 20
ground.velocity = -10, -10
air.velocity = -10, -15
ground.cornerpush.veloff = 0
velocity = 0,0
projhits = 40
projremovetime = 52
projpriority = 4
offset = 100,-21
postype = p1
[State 6050]
type = varset
trigger1 = p2life = 0
v = 2
value = 1
[State 240, PlaySnd]
type = LifeAdd
trigger1 = animelem = 10
value = -399
[State 240, ChangeState]
type = Changestate
trigger1 = animtime = 0
value = 180
ctrl = 1
Win pose:
[Statedef 181]
type = S
ctrl = 0
anim = 181
velset = 0,0
[State 181, 1]
type = NotHitBy
trigger1 = 1
value = SCA
time = 1
[State 181]
type = changeAnim
trigger1 = var(2) = 1
value = 6054
God damn it, an entire generation pumping gas, waiting tables; slaves with white collars. Advertising has us chasing cars and clothes, working jobs we hate so we can buy shit we don't need. We're the middle children of history, man. No purpose or place. We have no Great War. No Great Depression. Our Great War's a spiritual war... our Great Depression is our lives. We've all been raised on television to believe that one day we'd all be millionaires, and movie gods, and rock stars. But we won't. And we're slowly learning that fact. And we're very, very pissed off. ~Tyler Durden; Fight Club