YesNoOk
avatar

possiable for P1 to change animation while in P2 state? (Read 549 times)

Started by beterhans, November 27, 2018, 04:30:47 pm
Share this topic:
possiable for P1 to change animation while in P2 state?
#1  November 27, 2018, 04:30:47 pm
  • ***
    • beterwork-us.hopto.org
Enn..

For example

I'm coding P2

P1 hit P2 and dizzied P2 then put P2 into a custom state which is made by P1
P1 play the P2's 5300 dizzy animation.

But P2 have more than one dizzy animation
like 5300 or 15300 or 25300 based on modes or var

Is there any safe way to change P2's current animation which is 5300 called by P1 into 25300 if P2 found itself is in another mode?

just put in -2 state?
to change?
My MUGEN Website ==> for All my Characters Stages and Articles
https://beterwork-us.hopto.org
Re: possiable for P1 to change animation while in P2 state?
#2  November 27, 2018, 09:36:34 pm
  • ****
  • Robotics Engineer
    • USA
    • altoiddealer@gmail.com
In the custom state:

type = ChangeAnim2
trigger1 = SelfAnimExist(25300)
anim = 25300
persistent = 0

type = ChangeAnim2
trigger1 = SelfAnimExist(5300)
trigger1 = !SelfAnimExist(25300)
anim = 5300
persistent = 0

*Edit* thanks XGargoyle :)

Last Edit: November 28, 2018, 06:07:53 am by altoiddealer
Re: possiable for P1 to change animation while in P2 state?
#3  November 28, 2018, 12:36:44 am
  • ******
  • Hedgehog Whisperer
  • Red Bull addict
    • Spain
    • xgargoyle.mgbr.net
Better use changeanim2
XGargoyle: Battle posing since 1979
http://xgargoyle.mgbr.net
http://www.pandorabots.com/pandora/talk?botid=e71c0d43fe35093a  <-- Please click that link
http://paypal.me/XGargoyle  <-- Donations welcome!
Re: possiable for P1 to change animation while in P2 state?
#4  November 28, 2018, 01:17:16 am
  • ***
    • beterwork-us.hopto.org
In the custom state:

type = ChangeAnim
trigger1 = SelfAnimExist(25300)
anim = 25300
persistent = 0

type = ChangeAnim
trigger1 = SelfAnimExist(5300)
trigger1 = !SelfAnimExist(25300)
anim = 5300
persistent = 0

I can't change P1's code. only P2's
My MUGEN Website ==> for All my Characters Stages and Articles
https://beterwork-us.hopto.org
Re: possiable for P1 to change animation while in P2 state?
#5  November 28, 2018, 06:21:40 am
  • ****
  • Robotics Engineer
    • USA
    • altoiddealer@gmail.com
Ah... I understand now.

The key word is “safely”, and I don’t think it would be safe to ChangeAnim from State -2 while put in a custom state.

However, I think you can use AssertSpecial Invisible, and then spawn the new anim as a Helper.  You could try Explod instead, but you would need to test vs. players with different resolutions because there may be a MUGEN bug that affects the scaling.

So, in State -2 something like:

Type = AssertSpecial
trigger1 = Anim = 5300
trigger1 = (YOUR SPECIAL  CONDITION)
flag = Invisible

Type = Helper
Trigger1 = Anim = 5300
trigger1 = (YOUR SPECIAL  CONDITION)
... you should be able to figure the rest out from here :)

Re: possiable for P1 to change animation while in P2 state?
#6  November 28, 2018, 07:19:01 am
  • ***
    • beterwork-us.hopto.org
Ah... I understand now.

The key word is “safely”, and I don’t think it would be safe to ChangeAnim from State -2 while put in a custom state.

However, I think you can use AssertSpecial Invisible, and then spawn the new anim as a Helper.  You could try Explod instead, but you would need to test vs. players with different resolutions because there may be a MUGEN bug that affects the scaling.

So, in State -2 something like:

Type = AssertSpecial
trigger1 = Anim = 5300
trigger1 = (YOUR SPECIAL  CONDITION)
flag = Invisible

Type = Helper
Trigger1 = Anim = 5300
trigger1 = (YOUR SPECIAL  CONDITION)
... you should be able to figure the rest out from here :)

Yes you are right! and the idea of hide is great but I think I have to give up this idea.

Mr. Dam made a set of new sprites of my chun-li wearing new cloth.
I hoped to mix them together.
but I found it's unavoidable
when P1 made a custom animation with a unpredictable anim number for P2 and based on P2's standard 500x sprite.

for example a normal throw.
but 500x is normal clothing hit sprites. and P2 is in mode 2 it should play 2500x.



My MUGEN Website ==> for All my Characters Stages and Articles
https://beterwork-us.hopto.org