Nah i didnt bother trying to do a complete animation, i knew it would look bad.
that bind for the actual ball works perfectly, thanks. The only problem is that it seems to flip everytime the main character turns round even when using the noautoturn assert special in its actual state.
Also for some reason i cant get the chain and the ball to move at the same time.
code:
Chain
;---------------------------------------------------------------------------
; Swinging Ball Rings
[Statedef 1050]
type = A
movetype= A
physics = N
juggle = 4
poweradd= 110
;velset = 0,0
anim = 640
ctrl = 0
sprpriority = -2
[State 0, BindToParent]
type =BindToParent
trigger1 = 1
pos = 0,-107 ;Because axis is on top
;facing = 0
time = -1
[State -1, WideOpen]
type = AssertSpecial
trigger1 = 1
flag = noautoturn
[State 210, 3] ;Chain animation
type = ChangeAnim
trigger1 = anim != 613
trigger1 = parent,stateno = 0
value = 613
[State 0, ]
type =AngleDraw
trigger1 = 1
value = 100*cos(Time*Pi/200)
[State 1050, 5]
type = DestroySelf
trigger1 = parent,stateno = 5150
Ball:
;---------------------------------------------------------------------------
; Swinging Ball 2
[Statedef 1051]
type = A
movetype= A
physics = N
juggle = 4
;velset = 0,0
anim = 640
ctrl = 0
sprpriority = -2
[State -1, WideOpen]
type = AssertSpecial
trigger1 = 1
flag = noautoturn
[State 0, BindToParent]
type =BindToRoot
trigger1 = 1
pos = 100*sin(Time*Pi/200),100*abs(cos(Time*Pi/200))
;facing = 0
time = -1
[State 210, 3];Ball Animation
type = ChangeAnim
trigger1 = anim != 608
trigger1 = root,stateno = 0
value = 608
[State 1050, 4]
type = null;HitDef
trigger1 = Time = 0
attr = A, SA
animtype = Medium
damage = 80, 4
priority = 5
guardflag = MA
pausetime = 12,12
sparkxy = -10,-70
hitsound = 5,3
guardsound = 6,0
ground.type = Low
ground.slidetime = 20
ground.hittime = 20
ground.velocity = -3.5,-7
guard.velocity = -7
air.velocity = -3.5,-7
fall = 1
[State 1050, 5]
type = DestroySelf
trigger1 = root,stateno = 5150
;---------------------------------------------------
Anyway the bindtoparent/root things works great for the ball, thanks for your help.