It works! Now I removed ontop the trigger sprpriority works fine thanks again dude you are great
Exuse just another question: I'm working on cvs pro chars so they have two grooves with two different power bar. in snk groove power has autocharged but when I want charge the bar the inner bar goes over the edges of power bar being an irregular shape: I tried to scale the sprite with modifyexplod but I didn't have the desired effect I put the code
[State 6130, Explod]
type = Explod
triggerall = !NumExplod(6134) ;add this
triggerall = root,Alive ;add this
trigger1 = root,life<300 ;change this to something easier ;(100*root,life/root,const(data.life))<=30
trigger1 = teamside = 1
anim = 6134
ID = 6134
pos = 140,26
postype = back
facing = -1
vfacing = 1
bindtime = -1
pausemovetime = -1
removetime = -1 ;add this
scale = 1,1
sprpriority = 1
ontop = 1
ownpal = 0
ignorehitpause = 1
supermovetime = -1
pausemovetime = -1
[State 6130, Explod]
type = Explod
triggerall = !NumExplod(6134) ;add this
triggerall = root,Alive ;add this
trigger1 = root,life<300 ;change this to something easier ;(100*root,life/root,const(data.life))<=30
trigger1 = teamside = 2
anim = 6134
ID = 6134
pos = 177,26
postype = left
facing = 1
vfacing = 1
bindtime = -1
pausemovetime = -1
removetime = -1 ;add this
scale = 1,1
sprpriority = 1
ontop = 1
ownpal = 0
ignorehitpause = 1
supermovetime = -1
pausemovetime = -1
[State 0, ModifyExplod]
type = ModifyExplod
trigger1 = NumExplod(6134) ;add this
trigger1 = teamside = 1
;anim = 6134
ID = 6134
postype = back
pos = 140,26 ;add this
facing = -1
vfacing = 1
bindtime = -1
pausemovetime = -1
removetime = -1 ;add this
scale = (root,life)/300.0,1 ;scale will adjust based on life;((root,life<=1)/(root,lifeMax= 30), .5
sprpriority = 1
ontop = 1
ownpal = 0
ignorehitpause = 1
supermovetime = -1
pausemovetime = -1
[State 0, ModifyExplod]
type = ModifyExplod
trigger1 = NumExplod(6134) ;add this
trigger1 = teamside = 2
;anim = 6134
ID = 6134
postype = left
pos = 177,26 ;add this
facing = 1
vfacing = 1
bindtime = -1
pausemovetime = -1
removetime = -1 ;add this
scale = (root,life)/300.0,1 ;scale will adjust based on life;((root,life<=1)/(root,lifeMax= 30), .5
sprpriority = 1
ontop = 1
ownpal = 0
ignorehitpause = 1
supermovetime = -1
pausemovetime = -1
[State 0, RemoveExplod] ;add this controller to remove the explod when character's KO
type = RemoveExplod
trigger1 = root,Alive=0
id = 6134
[State 6130, Explod];”wŒi
type = Explod
trigger1 = !NumExplod(6583)
trigger1 = teamside = 1
anim = 6583
id = 6583
postype = Back
pos = 19,39
ownpal = 1
bindtime = -1
ignorehitpause = 1
ontop = 1
pausemovetime = -1
supermovetime = -1
[State 6130, Explod];”wŒi
type = Explod
trigger1 = !NumExplod(6585)
trigger1 = teamside = 2
anim = 6585
id = 6585
postype = Back
pos = 46,39
ownpal = 1
bindtime = -1
ignorehitpause = 1
ontop = 1
pausemovetime = -1
supermovetime = -1
[State 6130, Explod];”wŒi
type = Explod
trigger1 = !NumExplod(6131)
anim = 6131
id = 6131
postype = Back
pos = 115,217
ownpal = 1
bindtime = -1
ignorehitpause = 1
ontop = 1
pausemovetime = -1
supermovetime = -1
[State 6130, Explod];ƒQ[ƒW ;
This is the explod of inner bar type = Explod
trigger1 = !NumExplod(6132)
anim = 6132
id = 6132
postype = Back
pos = 114,215
ownpal = 1
bindtime = -1
ignorehitpause = 1
ontop = 1
pausemovetime = -1
supermovetime = -1
[State 6130, Explod];˜g1P
type = Explod
trigger1 = !NumExplod(6130)
trigger1 = teamside = 1
anim = 6130+ceil(((root,var(0)&2**1)/2**1)*200)
id = 6130
postype = Left
pos = 115,215
ownpal = 0
bindtime = -1
ignorehitpause = 1
ontop = 1
facing = 1
pausemovetime = -1
supermovetime = -1
scale = ifelse(!((root,var(0)&2**1)/2**1),1,1),ifelse(!((root,var(0)&2**1)/2**1),1,1)
[State 6130, Explod];˜g2P
type = Explod
trigger1 = !NumExplod(6130)
trigger1 = teamside = 2
anim = 6230+ceil(((root,var(0)&2**1)/2**1)*200)
id = 6130
postype = Right
pos = -115,215
ownpal = 0
bindtime = -1
ignorehitpause = 1
ontop = 1
facing = 1
pausemovetime = -1
supermovetime = -1
scale = ifelse(!((root,var(0)&2**1)/2**1),1,1),ifelse(!((root,var(0)&2**1)/2**1),1,1)
[State 6130, Explod];MAX
type = Explod
trigger1 = !NumExplod(6133)
anim = 6133+ceil(((root,var(0)&2**1)/2**1)*200)
id = 6133
postype = Back
pos = 20,202
ownpal = 1
bindtime = -1
ignorehitpause = 1
ontop = 1
facing = 1
pausemovetime = -1
supermovetime = -1
removetime = -1
scale = ifelse(!((root,var(0)&2**1)/2**1),1,1),ifelse(!((root,var(0)&2**1)/2**1),1,1)
[State 6130, ModifyExplod]
type = ModifyExplod
trigger1 = NumExplod(6130)
ID = 6130
scale = ifelse(!((root,var(0)&2**1)/2**1),1,1),ifelse(!((root,var(0)&2**1)/2**1),1,1)
ignorehitpause = 1
[State 6130, ModifyExplod]
type = ModifyExplod
triggerall = NumExplod(6130)
trigger1 = NumHelper(9000)||((root,var(0)&2**20)&&enemynear,NumHelper(9000))||root,fvar(20)
trigger2 = root,var(13)
ID = 6130
scale = 0,0
ignorehitpause = 1
[State 6130, ModifyExplod]
type = ModifyExplod
trigger1 = NumExplod(6131)
ID = 6131
scale = 1,1
ignorehitpause = 1
[State 6130, ModifyExplod]
type = ModifyExplod
triggerall = NumExplod(6131)
trigger1 = NumHelper(9000)||((root,var(0)&2**20)&&enemynear,NumHelper(9000))||root,fvar(20)
trigger2 = root,var(13)
ID = 6131
scale = 0,0
ignorehitpause = 1
[State 6130, ModifyExplod]
type = ModifyExplod
triggerall = !root,var(14)
trigger1 = NumExplod(6132)
trigger1 = power = [0,949]
ID = 6132
scale = ifelse(power>=1000,1,power)/1000.0,.83
ignorehitpause = 1
[State 6130, ModifyExplod] ;
This is the state of inner bar i talked firsttype = ModifyExplod
triggerall = !root,var(14)
trigger1 = NumExplod(6132)
trigger1 = power = [950,1000]
ID = 6132
scale = ifelse(power>=1000,1,power)/1000.0,1
ignorehitpause = 1
[State 6130, ModifyExplod]
type = ModifyExplod
triggerall = root,var(14)
trigger1 = NumExplod(6132)
ID = 6132
scale = (root,var(14))/750.0,.83
ignorehitpause = 1
[State 6130, ModifyExplod]
type = ModifyExplod
triggerall = NumExplod(6132)
trigger1 = NumHelper(9000)||((root,var(0)&2**20)&&enemynear,NumHelper(9000))||root,fvar(20)
trigger2 = root,var(13)
ID = 6132
scale = 0,0
ignorehitpause = 1
[State 6130, ModifyExplod]
type = ModifyExplod
triggerall = root,var(14)
trigger1 = NumExplod(6133)
ID = 6133
scale = 1,1
ignorehitpause = 1
[State 6130, ModifyExplod]
type = ModifyExplod
triggerall = NumExplod(6133)
trigger1 = !root,var(14)
trigger2 = NumHelper(9000)||((root,var(0)&2**20)&&enemynear,NumHelper(9000))||root,fvar(20)
trigger3 = root,var(13)
ID = 6133
scale = 0,0
ignorehitpause = 1