questo??
Spoiler, click to toggle visibilty
[Statedef 3130]
type = S
movetype= A
physics = N
anim = 3130
sprpriority = 99998
[State 3130, target]
type = TargetState
trigger1 = time = 0
value = 3150
[State 3130, var]
type = null;VarAdd
trigger1 = time = 1
v= 12
value = 1
[State 3130, 0]
type = TargetBind
trigger1 = AnimElemTime(23) < 0
time = 1
pos = 70,0
[State 3130, 0]
type = null;TargetBind
trigger1 = AnimElemTime(23) >= 0
trigger1 = BackEdgeBodyDist <= 0
time = 1
pos = P2BodyDist X+vel x,0
[State 3130, pos]
type = VelSet
triggerall = pos x != -28*facing
triggerall = AnimElemTime(1) = 2
trigger1 = facing = 1
trigger1 = (pos x+28)*.1*-1 >= -4
trigger1 = (pos x+28)*.1*-1 <= 4
trigger2 = facing = -1
trigger2 = (pos x-28)*.1 >= -4
trigger2 = (pos x-28)*.1 <= 4
x= 2+ifelse(facing=-1, abs((pos x-28)*.1), abs((pos x+28)*.1))
[State 3130, pos]
type = VelSet
trigger1 = time = 17
x= 0
[State 3130, pos]
type = null;PosAdd
triggerall = pos x != -28*facing
triggerall = AnimElemTime(1) >= 2
triggerall = AnimElemTime(18) <= 0
trigger1 = facing = 1
trigger1 = abs((pos x+28)*.1) > 1
trigger2 = facing = -1
trigger2 = abs((pos x-28)*.1) > 1
x= ifelse(facing=-1, (pos x-28)*.1, (pos x+28)*.1*-1)
[State 3130, pos]
type = PosAdd
triggerall = pos x != -28*facing
triggerall = AnimElemTime(1) >= 2
triggerall = AnimElemTime(18) <= 0
trigger1 = facing = 1
trigger1 = abs((pos x+28)*.1) > 1
x= ifelse((pos x+28)*.1*-1>=7, 7, ifelse((pos x+28)*.1*-1<=-7, -7, (pos x+28)*.1*-1))
[State 3130, pos]
type = PosAdd
triggerall = pos x != -28*facing
triggerall = AnimElemTime(1) >= 2
triggerall = AnimElemTime(18) <= 0
trigger1 = facing = -1
trigger1 = abs((pos x-28)*.1) > 1
x= ifelse((pos x-28)*.1>=7, 7, ifelse((pos x-28)*.1<=-7, -7, (pos x-28)*.1))
[State 3130, pos]
type = PosAdd
triggerall = pos x != -28*facing
triggerall = AnimElemTime(1) >= 2
triggerall = AnimElemTime(18) <= 0
trigger1 = facing = 1
trigger1 = abs((pos x+28)*.1) <= 1
trigger2 = facing = -1
trigger2 = abs((pos x-28)*.1) <= 1
x= ifelse(facing=-1, (pos x-28)*.1, (pos x+28)*.1*-1)
persistent = 2
[State 3130, del]
type = RemoveExplod
trigger1 = time = 1
ID = 7001
[State 3130, del]
type = RemoveExplod
trigger1 = time = 1
ID = 7100
[State 3130, del]
type = RemoveExplod
trigger1 = time = 1
ID = 7122
[State 3130, del]
type = RemoveExplod
trigger1 = time = 1
ID = 7123
[State 3130, bg]
type = AssertSpecial
trigger1 = 1
Flag = NoBG
Flag2 = globalnoshadow
[State 3130, pal]
type = EnvColor
trigger1 = time = 0
value = 0,0,255
time = 1
under = 1
[State 3130, pal]
type = EnvColor
trigger1 = time = [1,2]
value = 0,0,255
time = 1
[State 3130, A]
type = Helper
trigger1 = AnimElem = 3
stateno = 3123
id = 3123
name = "Miller"
ownpal = 1
sprpriority = 99995
postype = p1
pos = 0,0
keyctrl = 0
ownpal = 1
[State 3130, snd]
type = PlaySnd
trigger1 = AnimElem = 17
value = 10,42
freqmul = ifelse(var(54)=1, fvar(10), 1)
channel = 0
[State 3130, snd]
type = PlaySnd
trigger1 = AnimElem = 22
value = 6,8