YesNoOk
avatar

Stubborn explod issue (Read 7759 times)

Started by BigFiji, July 30, 2022, 10:30:47 pm
Share this topic:
Stubborn explod issue
#1  July 30, 2022, 10:30:47 pm
  • *
  • FijiSama
    • USA
Hello;

I created a set of Energy charge explods within a Helper that get called and destroyed as the helper does.

Problem is; Whenever the root (P1 Character) gets hit during the energy charge; The explods in question don't disappear;
Leaving a untouchable ghost of itself that cant be moved or destroyed.
This only occurs when the energy charge animation is hit/interrupted. If left alone the "RemoveExpods" in the Helper kill state do their job.
The debugger doesn't register anything outside the two players when this happens; so I don't think their clones either.

The code in question:



Code:
[Statedef 550]
type    = S
movetype= I
physics = N
juggle  = 1
velset = 0,0
ctrl = 0
anim = Cond(root,var(3)=1,9999,781)    ;550
sprpriority = 3


[State random smaller aura]
type = Explod
trigger1 = timemod = 5,0
anim = ifelse(var(3)=1,575,560);ifelse(root,var(3)=1,575,560)
ID = 6020
pos = 0,-40
vel = 0, ifelse(random<499, -2,-2.2)
random = 80,50
removetime = -2
scale = ifelse(random<499, .6,.5)*const(size.xscale), ifelse(random<499 ,.6,.5)*const(size.yscale)
sprpriority = ifelse(random<749, 3,-3)
ownpal = 1
removeongethit = 1
supermovetime = 9999999


[State 0, Explod]
type = Explod
triggerall = root,var(3)=1
trigger1 = time = 3
anim = 570
ID = 6021
pos = 0,0
postype = p1
bindtime = -1
removetime = -1
scale = 1.4,1
sprpriority = 5
ownpal = 1
ontop = 1
removeongethit = 1
trans = addalpha
alpha = 200,256
[State 0, Explod]
type = Explod
triggerall = root,var(3) = 0
trigger1 = time = 3
anim = 782
ID = 6022
pos = 0,-10
postype = p1
bindtime = -1
removetime = -1
scale = .775,.575
sprpriority = -2
ownpal = 1
removeongethit = 1
trans = addalpha
alpha = 180,256
;ignorehitpause = 0
[State 0, Explod]
type = Explod
triggerall = root,var(3) = 1
trigger1 = time = 3
anim = 6022
ID = 6023
pos = 70,-65
postype = p1
bindtime = -1
removetime = -1
scale = .6,.45
sprpriority = -5
ownpal = 1
removeongethit = 1
trans = addalpha
alpha =  75,256         ;180,256

[State aura4]
type = Explod
trigger1 = time = 0
Anim = 6024
ID = 6024
pos = 50,-80
sprpriority = 5
removeongethit = 1
removetime = -2
bindtime = -1
ownpal = 1
ontop = 1
scale = .4,.55
[State aura5]
type = Explod
triggerall = root,var(3) = 0
trigger1 = time = 5
Anim = 6025
ID = 6025
pos = 35,-50
sprpriority = -5
removeongethit = 1
removetime = -2
bindtime = -1
ownpal = 1
ontop = 1
scale = .35,.35


[State 0, Kaioken]
type = ChangeAnim
triggerall = root,var(3) = 1
trigger1 = anim != 570
value = 570

[State 0, Kaioken Regreso]
type = ChangeAnim
triggerall = root,var(3) = 0
trigger1 = anim = 570
value = 781


;[State 0, Explod]
;type = Explod
;triggerall = root,var(3) = 1
;trigger1 = time = 5
;anim = 7820
;ID = 6021
;pos = -10,-10
;postype = p1
;bindtime = -1
;removetime = -1
;scale = .775,.475
;sprpriority = -2
;ownpal = 1
;removeongethit = 1
;trans = addalpha
;alpha = 180,256
;ignorehitpause = 1
;[State aura4]
;type = Explod
;triggerall = root,var(3) = 1
;trigger1 = time = 5
;Anim = 60240
;ID = 6024
;pos = 50,-80
;sprpriority = 5
;removeongethit = 1
;removetime = -1
;bindtime = -1
;ownpal = 1
;ontop = 1
;scale = .4,.55
;[State aura5]
;type = Explod
;triggerall = root,var(3) = 1
;trigger1 = time = 5
;Anim = 60250
;ID = 6025
;pos = 35,-50
;sprpriority = -5
;removeongethit = 1
;removetime = -1
;bindtime = -1
;ownpal = 1
;ontop = 1
;scale = .35,.35


[State 0, Explosion]
type = Explod
trigger1 = time = 0
anim = 9022
ID = 9022
pos = 0,0
postype = left
facing = 1
vfacing = 1
bindtime = -1
removetime = -2
scale = 999,999
sprpriority = 9
ontop = 1
ownpal = 1
removeongethit = 0
ignorehitpause = 1
supermove = 99999
pausemove = 99999
supermovetime = 99999
pausemovetime = 99999

[State 0, Explod]
type = Explod
triggerall = root,pos y >= 0
trigger1 = timemod = 10,0
anim = 7015
ID = 1051
pos = 0,0
postype = p1
facing = 1
vfacing = 1
bindtime = 1
removetime = -2
scale = .3,1
sprpriority = 1
ontop = 0
ownpal = 1
removeongethit = 1
vel = -5,0
supermove = 999
supermovetime = 999
pausemove = 999
pausemovetime = 999

[State 0, Explod]
type = Explod
triggerall = root,pos y >= 0
trigger1 = timemod = 10,0
anim = 7015
ID = 1051
pos = 0,0
postype = p1
facing = -1
vfacing = 1
bindtime = 1
removetime = -2
scale = .3,1
sprpriority = 1
ontop = 0
ownpal = 1
removeongethit = 1
vel = 5,0
supermove = 999
supermovetime = 999
pausemove = 999
pausemovetime = 999

[State 0, BindToRoot]
type = BindToRoot
trigger1 = 1
pos = 0,10

[State 0, AssertSpecial]
type = AssertSpecial
trigger1 = 1
flag = noshadow

[State 0, Trans]
type = Trans
trigger1 = 1
trans = addalpha
alpha = 256,256

[State 0, HitOverride]
type = HitOverride
trigger1 = 1
attr = SCA,NA,SA,HA,NP,SP,HP,NT,ST,HT
stateno = 551
time = 999


[State 0, NotHitBy]
type = NotHitBy
trigger1 = 1
value = SCA,NA,SA,HA,NP,SP,HP,NT,ST,HT

[State 200, End]
type = Destroyself
trigger1 = root,movetype = H

[State 200, End]
type = Changestate
trigger1 = root,stateno != 500
value = 551
;-------------------------------------------------------------------------------
; Aura - Fin
[Statedef 551]
type    = S
movetype= I
physics = N
juggle  = 1
velset = 0,0
ctrl = 0
anim = 781
sprpriority = 3




[State 0, RemoveExplod]
type = RemoveExplod
trigger1 = time = 0
id = 6020
[State 0, RemoveExplod]
type = RemoveExplod
trigger1 = time = 0
id = 6021
[State 0, RemoveExplod]
type = RemoveExplod
trigger1 = time = 0
id = 6022
[State 0, RemoveExplod]
type = RemoveExplod
trigger1 = time = 0
id = 6023
[State 0, RemoveExplod]
type = RemoveExplod
trigger1 = time = 0
id = 6024
[State 0, RemoveExplod]
type = RemoveExplod
trigger1 = time = 0
id = 6025


[State 0, Kaioken]
type = ChangeAnim
triggerall = root,var(3) = 1
trigger1 = anim != 570
value = 570

[State 0, Kaioken Regreso]
type = ChangeAnim
triggerall = root,var(3) = 0
trigger1 = anim = 570
value = 781

[State 0, RemoveExplod]
type = RemoveExplod
trigger1 = time = 0
id = 9030

[State 0, Explosion]
type = Explod
trigger1 = time = 0
anim = 9022
ID = 9022
pos = 0,0
postype = left
facing = 1
vfacing = 1
bindtime = -1
removetime = -2
scale = 999,999
sprpriority = 9
ontop = 1
ownpal = 1
removeongethit = 0
ignorehitpause = 1
supermove = 99999
pausemove = 99999
supermovetime = 99999
pausemovetime = 99999

[State 0, BindToRoot]
type = BindToRoot
trigger1 = 1
pos = 0,10

[State 0, AssertSpecial]
type = AssertSpecial
trigger1 = 1
flag = noshadow

[State 0, Trans]
type = Trans
trigger1 = 1
trans = addalpha
alpha = 200-(time*20),256

[State 200, End]
type = Destroyself
trigger1 = time = 3
trigger2 = root,movetype = H
Winners are just losers who tried one more time

Re: Stubborn explod issue
#2  July 31, 2022, 01:18:15 am
  • **
  • Blue is cool.
    • USA
These explod state controllers:

Code:
[State 0, Explod]
type = Explod
triggerall = root,var(3)=1
trigger1 = time = 3
anim = 570
ID = 6021
pos = 0,0
postype = p1
bindtime = -1
removetime = -1
scale = 1.4,1
sprpriority = 5
ownpal = 1
ontop = 1
removeongethit = 1
trans = addalpha
alpha = 200,256

[State 0, Explod]
type = Explod
triggerall = root,var(3) = 0
trigger1 = time = 3
anim = 782
ID = 6022
pos = 0,-10
postype = p1
bindtime = -1
removetime = -1
scale = .775,.575
sprpriority = -2
ownpal = 1
removeongethit = 1
trans = addalpha
alpha = 180,256
;ignorehitpause = 0

[State 0, Explod]
type = Explod
triggerall = root,var(3) = 1
trigger1 = time = 3
anim = 6022
ID = 6023
pos = 70,-65
postype = p1
bindtime = -1
removetime = -1
scale = .6,.45
sprpriority = -5
ownpal = 1
removeongethit = 1
trans = addalpha
alpha =  75,256         ;180,256

Have a "removetime" value of -1, so they never disappear unless removed by a "RemoveExplod" state controller. You have that in state 551, but not in state 550.

I'm assuming you want these explods to be shown until this move is stopped, so all you need to do is add this:

Code:
[State 0, RemoveExplod]
type = RemoveExplod
trigger1 = root,movetype = H
id = 6021

[State 0, RemoveExplod]
type = RemoveExplod
trigger1 = root,movetype = H
id = 6022

[State 0, RemoveExplod]
type = RemoveExplod
trigger1 = root,movetype = H
id = 6023

Above the "DestroySelf" state controller in state 550.
Sometimes I listen to video game music more than I actually play the game.
Check out my Bonus Game & Characters!: http://mugenguild.com/forum/topics/streets-rage-2-bonus-game-11-chars-162092.0.html
IKEMEN Version: https://mugenguild.com/forum/topics/streets-rage-2-bonus-game-ikemen-version-update-728-196297.0.html
Re: Stubborn explod issue
#3  August 05, 2022, 10:39:42 pm
  • *
  • FijiSama
    • USA
This did the trick!
Thank you so much!
Winners are just losers who tried one more time