YesNoOk
avatar

Explods dissapearing after i hit the move a second time (Read 11603 times)

Started by dsg.va, March 28, 2023, 01:19:47 am
Share this topic:
Explods dissapearing after i hit the move a second time
#1  March 28, 2023, 01:19:47 am
  • avatar
    • USA
so i made a barrage  move for my character and it works fine the first time but after the 2nd time the explod fades out and from then on No explods appear in any other move or attack
Re: Explods dissapearing after i hit the move a second time
#2  April 01, 2023, 10:11:58 am
  • **
    • Ukraine
so i made a barrage  move for my character and it works fine the first time but after the 2nd time the explod fades out and from then on No explods appear in any other move or attack

Hi. Show the code of the explod.
Re: Explods dissapearing after i hit the move a second time
#3  April 01, 2023, 01:02:11 pm
  • avatar
    • USA
[State 0, FX]
type = Explod
trigger1 = animelem = 5
trigger2 = animelem = 5
trigger3 = animelem = 5
trigger4 = animelem = 7
trigger5 = animelem = 7
trigger6 = animelem = 7
anim = 580
ID = 3015
random = 0,20
angle = 5-random%5
pos = 14+random%30,-10-random%25
postype = p1
facing = 1
vfacing = 1
bindtime = -1
removetime = -2
scale = .2,.2
sprpriority = 1
ontop = 1
ownpal = 1
removeongethit = 1
ignorehitpause  = 1
supermove = 999
supermovetime = 999
pausemove = 999
pausemovetime = 999


[State 0, FX]
type = Explod
triggerall = animelem = 7
trigger1 = animelem = 7
anim = 7207
ID = 3015
angle = 10-random%5
pos = 20,-20
postype = p1
facing = 1
vfacing = 1
bindtime = -1
removetime = -2
scale = .7,.7
sprpriority = 1
ontop = 1
ownpal = 1
removeongethit = 0
ignorehitpause  = 1

[State 0, FX]
type = Explod
triggerall = animelem = 5
trigger1 = animelem = 5
trigger2 = animelem = 5
anim = 7208
ID = 3014
angle = 10-random%5
pos = 20,-20
postype = p1
facing = 1
vfacing = 1
bindtime = -1
removetime = -2
scale = .7,.7
sprpriority = 1
ontop = 1
ownpal = 1
removeongethit = 0
ignorehitpause  = 1

it works fine but then id land the move a second time and then all explods (even the enemys will stop working)
Re: Explods dissapearing after i hit the move a second time
#4  April 08, 2023, 09:37:22 am
  • **
It's most likely because you've spawned the max amount of explod the system (mugen) could handle in 2 moves.
Re: Explods dissapearing after i hit the move a second time
#5  April 08, 2023, 06:40:02 pm
  • avatar
    • USA
so what would be the best solution for this should i swap the explods for helpers?
Re: Explods dissapearing after i hit the move a second time
#6  April 09, 2023, 01:57:14 am
  • **
No need unless you want to.  Since you have removetime=-2, the explods should destroy themselves at the end of the animation unless your animation lasts forever.  You should test in debug to see which explods are not being destroyed when you're using the move to be sure.  Your explods shouldn't share the same ID though. 
 
Re: Explods dissapearing after i hit the move a second time
#7  April 12, 2023, 04:39:50 pm
  • **
    • Ukraine
Why do you have 3 triggers with the same condition? Like, animelem = 5, 3 times.