Hi, been a long time :P
I been trying to make a helper stick to my character kinda like JoJo characters have. I looked at various characters that use this system but for some reason it wont work for me...
Here's the code:
[Statedef 10000]
type = S
movetype = I
physics = S
anim = 10000
ctrl = 0
sprpriority = -1
[State 10000, ChangeAnim]
type = ChangeAnim
trigger1 = Anim != 10000 && Anim != 10005
trigger2 = Anim = 10005 && AnimTime = 0
value = 10000
[State 10000, AssertSpecial]
type = AssertSpecial
trigger1 = 1
flag = noshadow
[State 10000, Trans]
type = Trans
trigger1 = 1
trans = sub
alpha = 256,256
ignorehitpause = 1
[State 10000, BindToParent]
type = BindToParent
trigger1 = 1
pos = 4,0
[State 10000, Turn]
type = Turn
trigger1 = facing != root,facing
[State 10000, NotHitBy]
type = NotHitBy
trigger1 = 1
value = SCA
time = 1
[State 10000, ChangeAnim]
type = ChangeAnim
triggerall = anim != 10020
trigger1 = root,command = "holdfwd"
value = 10020
Thanks in advance.
P.S. Nice to see my emotes still being used :)
EDIT: Sorry i didn't explain what was wrong. The animation changes to walk but does not animate, just stays a single sprite.
[Statedef 10000]
type = S
movetype = I
physics = S
anim = 10000
ctrl = 0
sprpriority = -1
[State 10000, AssertSpecial]
type = AssertSpecial
trigger1 = 1
flag = noshadow
[State 10000, Trans]
type = Trans
trigger1 = 1
trans = sub
alpha = 256,256
ignorehitpause = 1
[State 10000, BindToParent]
type = BindToRoot
trigger1 = 1
pos = 4,0
[State 10000, Turn]
type = Turn
trigger1 = facing != root,facing
[State 10000, NotHitBy]
type = NotHitBy
trigger1 = 1
value = SCA
time = 1
[State 10000, ChangeAnim]
type = ChangeAnim
trigger1 = anim != 10020 && root, anim = 20
value = 10020
[State 10000, ChangeState]
type = ChangeState
trigger1 = anim != 10000 && root, stateno != 20
value = 10000
I updated the code, so it works now. If anyone expert think what I did is wrong, just say.