YesNoOk
avatar

Explod/helper only appears once for a multi trigger hitdef (Read 639 times)

Started by Continuity, December 17, 2009, 03:50:04 am
Share this topic:
Explod/helper only appears once for a multi trigger hitdef
#1  December 17, 2009, 03:50:04 am
  • ***
  • 我が名は 「ハクメン」、押して参る!
This is actually a problem I had before. So I'm using explod/helper as hitsparks and there's a hitdef that triggers on many different occasions, ie: [mcode]trigger1=animtime=XX || animtime=XX[/mcode] etc, my explod/helper state has the [mcode]trigger1=movehit[/mcode], but when I use the move the hitspark only appears for the first hit. When persistent=1, the hitspark appears for every hit by the animation is all dragged on and the screen turns into clusterf*ck. So this is my basic situation, help is appreciated, thank you.
Last Edit: December 18, 2009, 10:20:31 pm by Juggervoid
Re: Explod/helper only appears once for a multi trigger hitdef
#2  December 17, 2009, 04:07:02 am
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
movehit = 1

Animtime possibly isn't the best trigger, animelemtime might be a better choice there. Still, movehit = 1 should be a more reliable and limited option.


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: Explod/helper only appears once for a multi trigger hitdef
#3  December 17, 2009, 10:19:11 am
  • ******
Don't forget ignorehitpause, if you're using movehit = 1.
If I struggled to the end of my determination, to the end of my way of life with my followers, if the result is ruin, then this ruin is inevitable. Grieve. Shed tears. But you cannot regret.
Re: Explod/helper only appears once for a multi trigger hitdef
#4  December 18, 2009, 07:08:50 pm
  • ***
  • 我が名は 「ハクメン」、押して参る!
So where should I put the movehit=1? In the trigger for the hitspark or just an independent line? Because it doesn't seem to be working.
Re: Explod/helper only appears once for a multi trigger hitdef
#5  December 18, 2009, 07:19:48 pm
  • ******
  • I hang out tough. I'm a real boss.
    • USA
    • litotichues.com/
You add, "ignorehitpause = 1," to your state controller:

[state]
triggers
stuff
ignorehitpause=1


And the trigger that you have there that says, "movehit," should be changed to, "movehit=1."

Re: Explod/helper only appears once for a multi trigger hitdef
#6  December 18, 2009, 09:39:23 pm
  • ***
  • 我が名は 「ハクメン」、押して参る!
hmmmmm....it doesn't seem to be working, I'll post up the code for you guys to take a look
[mcode][state 1535]
type=hitdef
trigger1=animelemtime(9)=0
trigger2=animelemtime(15)=0
trigger3=animelemtime(21)=0
attr = S, SP
damage = 40, 8
animtype = Heavy
guardflag = MA
hitflag = MAF
priority = 5, Hit
pausetime = 2,2
sparkno = 0
sparkxy = -0, -0
hitsound = 5, 0
guardsound = 6, 0
ground.type = high
ground.slidetime = 20
ground.hittime  = 24
ground.velocity =-25
guard.slidetime = 30
guard.velocity = 30
airguard.velocity = -2.5,-1.2
air.type = low
air.velocity = -3.4,-6
yaccel=0.45
air.hittime = 24
air.fall = 1
ground.cornerpush.veloff=0
air.cornerpush.veloff=0

[state 200, hitspark]
type=helper
trigger1=movehit=1
stateno=8012
size.xscale=0.4
size.yscale=0.4
pos=ceil(p2bodydist x+50), -70
postype=p1
ownpal=1
keyctrl=0
ignorehitpause=1
persistent=0[/mcode]

The problem remains, the spark appears upon the first hit but no longer appears for the follow ups.
Re: Explod/helper only appears once for a multi trigger hitdef
#7  December 18, 2009, 09:41:46 pm
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
That's because you left persistent = 0 in there. Good for canceling spam, not so good if you want it to happen more than once.


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: Explod/helper only appears once for a multi trigger hitdef
#8  December 18, 2009, 09:49:59 pm
  • ***
  • 我が名は 「ハクメン」、押して参る!
Ok I removed persistent=0 and hitspark appears for every hit...but every hit generates something like 10 helpers and they overlap on each other and the whole thing just looks like a mess.
Re: Explod/helper only appears once for a multi trigger hitdef
#9  December 18, 2009, 09:55:20 pm
  • ******
... Add the three triggers of the hitdef as triggers of the helper, and put the movehit = 1 trigger as a triggerall.
If I struggled to the end of my determination, to the end of my way of life with my followers, if the result is ruin, then this ruin is inevitable. Grieve. Shed tears. But you cannot regret.
Re: Explod/helper only appears once for a multi trigger hitdef
#10  December 18, 2009, 10:05:54 pm
  • ***
  • 我が名は 「ハクメン」、押して参る!
... Add the three triggers of the hitdef as triggers of the helper, and put the movehit = 1 trigger as a triggerall.

Well...I did this, now the spark decides to not appear at all  --;, sorry about this everyone, I have no idea how I got myself into this
Re: Explod/helper only appears once for a multi trigger hitdef
#11  December 18, 2009, 10:20:19 pm
  • ***
  • 我が名は 「ハクメン」、押して参る!
Nevermind, I just decided to shrink the sprite and use the hitspark option in the hitdef, the quality sucks but one less annoying thing to worry about, thanks everyone for helping out ;)
Re: Explod/helper only appears once for a multi trigger hitdef
#12  December 18, 2009, 10:46:29 pm
  • ******
I did this, now the spark decides to not appear at all  --;
That's simply because animelemtime(9) and so on are not 0 when movehit is 1. Adjust those three triggers to match all the frames where you do have a clsn1 active. Since you use the trigger movehit = 1, it will only trigger on one frame, the frame immediately after the hit connects, and it shouldn't trigger several times even during the entire time the clsn1 stays active.
If I struggled to the end of my determination, to the end of my way of life with my followers, if the result is ruin, then this ruin is inevitable. Grieve. Shed tears. But you cannot regret.