YesNoOk
avatar

How to stop a round from ending to early? (Read 872 times)

Started by MarioManX1983, March 04, 2019, 08:14:54 pm
Share this topic:
How to stop a round from ending to early?
#1  March 04, 2019, 08:14:54 pm
  • **
  • Expert Noob
  • I am a lover and a fighter!
    • USA
How do I stop a round from ending to early?

I'm building a character and am testing the "Time Over" animation. The animation plays fine but the round ends and goes to the next round before the characters sound is finished playing.

Is there a way to prevent this transition from happening until the sound is finished playing? And if so, will the code work for "Victory" animations as well?
May you always win every round, both in MUGEN and Life. :)
Re: How to stop a round from ending to early?
#2  March 04, 2019, 08:26:18 pm
  • ******
  • Hedgehog Whisperer
  • Red Bull addict
    • Spain
    • xgargoyle.mgbr.net
I can't test it right now, but should this answer your question?

AssertSpecial
Quote
        roundnotover
            Tells MUGEN that the character is currently performing his win pose. Should be asserted on every tick while the win pose is being performed.

Not sure if the engine considers the "time Over" event as a win pose or not, though...
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: How to stop a round from ending to early?
#3  March 04, 2019, 08:35:01 pm
  • **
  • Expert Noob
  • I am a lover and a fighter!
    • USA
[State 170, AssertSpecial]
type = AssertSpecial
trigger1 = 1
flag = roundnotover

Technically this does work, but using trigger1 = 1 prevents the round from ending until a button is pressed. Is there a trigger for when the sound is finished playing?

Perhaps even a trigger for when the sound is finished playing + 1 second?
May you always win every round, both in MUGEN and Life. :)
Re: How to stop a round from ending to early?
#4  March 04, 2019, 08:38:38 pm
  • ******
  • Hedgehog Whisperer
  • Red Bull addict
    • Spain
    • xgargoyle.mgbr.net
[State 170, AssertSpecial]
type = AssertSpecial
trigger1 = time<1000
flag = roundnotover

You just need to calculate the length of the audio and then have the assertspecial active until that, here in the example I am using 1000 ticks (around 16 seconds and a half)
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: How to stop a round from ending to early?
#5  March 07, 2019, 06:00:58 pm
  • **
  • Expert Noob
  • I am a lover and a fighter!
    • USA
Thank you, this seams to work.
May you always win every round, both in MUGEN and Life. :)