I've tried around a little bit with Stage interactivity. Son I've set a Helper that Shoots a shock sometimes.
I've set hier sprpriorty to -5 cause I wanted it to be behind the chars the whole time, but after hittin the chars once they are behind him while standing/walking, but not while jumping Oo
here the code:
[Statedef -2]
;-----
;Stage Interactivity
[State 2000, BG Activity]
type = Helper
trigger1 = RoundState = 0 && Time = 0 && Facing = 1 && StageVar(info.displayname) = "Egypt"
helpertype = normal ;player
name = "Activity"
ID = 2000
stateno = 9001
pos = -160,-100
postype = front ;p2,front,back,left,right
facing = 1
keyctrl = 0
ownpal = 1
[Statedef 9001]
type = A
movetype= A
physics = S
ctrl = 0
anim = 2000
sprpriority = -5
[State 0, AssertSpecial]
type = AssertSpecial
trigger1 = 1
flag = noshadow
[State 9001, HitDef]
type = HitDef
trigger1 = AnimElem = 3
attr = SCA,NA ;SCA,NA,SA,HA,NP,SP,HP,NT,ST,HT
hitflag = MAF ;HLAFD+-
guardflag = ;!!! ;HLA
affectteam = B ;!!! ;B,E,F
animtype = hard ;light,medium,hard,back,up,diagup
air.animtype = light
damage = 30,0
pausetime = 0 ,0
sparkxy = 0,0
hitsound = S1,0
air.hittime = 20
guard.dist = 0 ;!!!
ground.velocity = 0,0
air.velocity = 0,0
p1getp2facing = 0
fall = 1
fall.xvelocity = -3
fall.yvelocity = -4.5
fall.recover = 1
fall.recovertime = 4
fall.damage = 0
down.bounce = 0
hitonce = 0 ;!!!
palfx.time = 0
envshake.time = 0
fall.envshake.time = 0
And some pictures for better understanding:
The Chars before they got hit by the helper:
Ther Chars get hit
The Chars after they got hit by the helper:
The Chars after they got hit by the helper while jumping:
My Goal is to get them in front of the Helper the whole time