YesNoOk
avatar

Stop looping animation for an explod? (Read 8114 times)

Started by supercain, June 14, 2020, 07:50:44 am
Share this topic:
Stop looping animation for an explod?
#1  June 14, 2020, 07:50:44 am
  • avatar
  • **
    • Germany
Hi,

I have an ordinary explod:

[State 0, Explod] 
type = Explod
trigger1 = time = 0
anim = 30
pos = 0,0
postype = left
removetime = -1

animation 30 has 20 frames, I want it to run up to the 20th frame, stop there and stay in that frame permanently instead of looping back to the 1st one. Is that possible?

Thank you.
Re: Stop looping animation for an explod?
#2  June 14, 2020, 07:54:29 am
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
You change the animation

Last frame with a time of -1 will last forever. You can also use loopstart to keep a couple of frames looping after a set of start frames.


In M.U.G.E.N there is no magic button

They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.
Re: Stop looping animation for an explod?
#3  June 14, 2020, 05:54:04 pm
  • avatar
  • **
    • Germany
No way to do it in the states? I need that same animation like that for states that require it to loop forever.
Re: Stop looping animation for an explod?
#4  June 15, 2020, 09:24:35 am
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
Just set up a new anim would be easiest. Or if you insist on keeping the one.

In the states where it needs to loop and is not an explod
Type = changeanim
Trigger1 = animelemtime(last frame number) = 5
Value = anim
Elem = 1

To send it  back to the start. Correct times and frmes as needed. Id just make a new anim though.


In M.U.G.E.N there is no magic button

They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.
Re: Stop looping animation for an explod?
#5  June 15, 2020, 06:12:34 pm
  • avatar
  • **
    • Germany
Thank you but the thing is its an explod to begin with so that code will do no good. I had to duplicate the animation as a solution. Something I wanted to avoid.
Re: Stop looping animation for an explod?
#6  June 16, 2020, 10:56:07 am
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
There is not much control for explods. If you were insisting on the one anim you'd turn it into a helper and control it that way. But thats way more effort and code than a new anim.


In M.U.G.E.N there is no magic button

They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.
Re: Stop looping animation for an explod?
#7  June 18, 2020, 01:33:44 am
  • avatar
  • **
    • Germany
I see. Thanks anyway.