I am making my character have a move where he calls a helper. The helper comes from the edge of the screen and moves forward. When it is in front of the character, he would breathe fire. He changes anim when he gets in front of my character , but he is stuck on frame 1, and the animation NEVER plays.
For some reason, adding the trigger:
time=50
causes the animation to play. But just putting parentdist x < -60 will cause the animation to freeze. How can I fix this?
[Statedef 211]
type = S ;State-type: S-stand, C-crouch, A-air, L-liedown
movetype= I ;Move-type: A-attack, I-idle, H-gethit
physics = N ;Physics: S-stand, C-crouch, A-air
juggle = 1 ;Number of air juggle points move takes
velset = 0,0 ;Set velocity (x,y) (Def: no change)
ctrl = 0 ;Set ctrl (Def: no change)
anim = 211 ;Change animation (Def: no change)
poweradd = 0 ;Power to add (Def: 0)
sprpriority = 1 ;Set layering priority to 2 (in front)
[State 211, AssertSpecial]
type = AssertSpecial
trigger1 = 1
flag = noautoturn
[State 211, VelSet]
type = VelSet
triggerall=anim=211
trigger1 = time=0
x = 4
y = -.1
[State 211, Wing Flap]
type = PlaySnd
trigger1 =anim=211&&animelem=5
trigger2 =anim=212&&animelem=5
value = S0,1
volume = 0
channel = -1
[State 211, HitOverride]
type = HitOverride
trigger1 = Ishelper
attr = SCA,AA,AP,AT
stateno = 217
[State 211, Changeanim]
type = ChangeAnim
trigger1 = parentdist x < -60
value =212
[State 211, DestroySelf]
type = DestroySelf
trigger1 = FrontEdgeDist < -50
;Attack
;======================
[State 211, StateTypeSet]
type = StateTypeSet
trigger1 = anim=212
movetype = A
[State 211, VelSet]
type = VelSet
trigger1=anim=212
x = 0
y=0
[State 211, Helper]
type = helper
triggerall=anim=212
trigger1 = animelem=1
helpertype = normal ;player
name = "Flame"
ID = 215
stateno = 215
pos = 0,0
postype = p1 ;p2,front,back,left,right
facing = 1
keyctrl = 0
ownpal = 1
[State 211, Leaving]
type = Changeanim
triggerall=anim=212
trigger1 = animtime=0
value = 211
[State 211, StateTypeSet]
type = StateTypeSet
trigger1 = anim=211
movetype = I
[State 211, VelSet]
type = VelSet
trigger1=anim=211
x = 4