# Keep the pose after winning (Read 850 times)

Started by Basara Suede Goo, March 01, 2011, 01:53:57 pm

#### Basara Suede Goo

##### Keep the pose after winning
#1  March 01, 2011, 01:53:57 pm
• ClayFighter turned MUGEN Creator
• HEY WATCH THE HAIR MAN!!
I know maybe this question is common, but i've to make it anyway...

About the title, you know... like Akuma's pose after SGS, an anim that isn't 0 after winning with some specific move and mantain it as a winpose. I saw a lot of Akuma chars (included POTS' Shin Akuma) and still don't get how they made it.

Maybe I need an explanation about it should work, I hope you can help me with this

#### Cybaster

##### Re: Keep the pose after winning
#2  March 01, 2011, 02:16:56 pm
• Limited time to use Infinite power !
In your attack states, create a varset for when you kill the opponent :

[State 13100, WinP]
type = VarSet
triggerall = var(3) = 0
trigger1 = NumEnemy = 1
trigger1 = P2Life = 0
trigger2 = NumEnemy = 2
trigger2 = (EnemyNear(0), Life) + (EnemyNear(1), Life) = 0
var(3) = 1

Then, at the end of the move, give back control to the character very quickly, or he won't go in winstate :

[state 13100, give control]
type = ctrlset
trigger1 = (time = XXX) && (var(3)=1) && winko
value = 1

[state 13100, no control]
type = ctrlset
trigger1 = (time = XXX+1) && (var(3)=1) && winko
value = 0Note that this surely isn't the optimal way of doing it.

The, use a changestate to state 180 (the winning state), based on the variable :
[State 13100, End]
type = ChangeState
trigger1 = winko && (var(3) = 1) && (time = YYY)
value = 180

In state 180, change immediately the state based on the variable :

[State 180, FromSGS]
type = ChangeState
trigger1 = Time = 0
trigger1 = var(3)
value = 18001

And in state 18001, use the same animation as the one you're already in.

#### Basara Suede Goo

##### Re: Keep the pose after winning
#3  March 01, 2011, 07:33:13 pm
• ClayFighter turned MUGEN Creator
• HEY WATCH THE HAIR MAN!!
That code will be very useful... thanks!!

#### Basara Suede Goo

##### Re: Keep the pose after winning
#4  March 02, 2011, 05:25:40 pm
• ClayFighter turned MUGEN Creator
• HEY WATCH THE HAIR MAN!!
Hey Cyb, I tried to use the code but doesn't work well, maybe because the hit makes KO isn't by the character, but by a helper (in this case, the cow from sky), i've to put the first code in both states (player and helper) or just in helper??

#### Cybaster

##### Re: Keep the pose after winning
#5  March 02, 2011, 05:31:06 pm
• Limited time to use Infinite power !
I'd say just in the player, since it's EWJ you'll redirect to state180 with var(3)=1, not the helper.
Display your variables in the clip board to be sure the vars are set correctly.

#### Basara Suede Goo

##### Re: Keep the pose after winning
#6  March 02, 2011, 06:49:45 pm
• ClayFighter turned MUGEN Creator
• HEY WATCH THE HAIR MAN!!
OK, I'll try it then