[State 1010, PS]
type = posset
trigger1 = 1
x = floor(root,pos x)+floor(120*fvar(0)*cos((var(0)+5.0*var(40))*pi/180.0))*(-(root,facing))
y = floor(root,pos y)+floor(120*fvar(0)*sin((var(0)+5.0*var(40))*pi/180.0))+root,const(size.mid.pos.y)
I know, that his handles the positioning of Orreries Sun based on the root's position.
However, they think, that the player is the root.
How can I mkae it like that, so the root is a different anim instead? Here is the code of said anim:
;Orreries Sun Spawner
[Statedef 3101] ;This little object allow the Orreries Sun to move like a Leaf Shield.
Type = A
Movetype= A
Physics = N
Ctrl = 1
Sprpriority = 5
anim = 3109
[State 3101]
type = AssertSpecial
trigger1 = 1
flag = noshadow
ignorehitpause = 1
[State 3101, HitOverride]
type = hitoverride
trigger1 = 1
attr = SCA,AA,AP,AT
time = -1
stateno = 1002
ignorehitpause = 1
[State 3101, hitby]
type = hitby
trigger1 = 1
value = SCA,AP
time = -1
[State 3101, var]
type = varset
trigger1 = movecontact
var(0) = 1+(moveguarded!=0)
[State 3101]
type = veladd
trigger1 = 1
X = 0.2; * cos(var(0)*Pi/180)
Y = -0.1 * sin(var(0)*Pi/180)
[State 4000, Effect]
type = helper
trigger1 = time = 1
persistent = 0
helpertype = normal
name = "Planet"
ID = 3102
pos = 3,-40
postype = p1
stateno = 3102
ownpal = 1
facing = 1
pausemovetime = 180
supermovetime = 180
[State 4000, Effect]
type = helper
trigger1 = time = 1
persistent = 0
helpertype = normal
name = "Planet"
ID = 3103
pos = 3,-40
postype = p1
stateno = 3102
ownpal = 1
facing = 1
pausemovetime = 180
supermovetime = 180
[State 4000, Effect]
type = helper
trigger1 = time = 1
persistent = 0
helpertype = normal
name = "Planet"
ID = 3104
pos = 3,-40
postype = p1
stateno = 3102
ownpal = 1
facing = 1
pausemovetime = 180
supermovetime = 180
[State 4000, Effect]
type = helper
trigger1 = time = 1
persistent = 0
helpertype = normal
name = "Planet"
ID = 3105
pos = 3,-40
postype = p1
stateno = 3102
ownpal = 1
facing = 1
pausemovetime = 180
supermovetime = 180
[State 4000, Effect]
type = helper
trigger1 = time = 1
persistent = 0
helpertype = normal
name = "Planet"
ID = 3106
pos = 3,-40
postype = p1
stateno = 3102
ownpal = 1
facing = 1
pausemovetime = 180
supermovetime = 180
[State 4000, Effect]
type = helper
trigger1 = time = 1
persistent = 0
helpertype = normal
name = "Planet"
ID = 3107
pos = 3,-40
postype = p1
stateno = 3102
ownpal = 1
facing = 1
pausemovetime = 180
supermovetime = 180
[State 3101]
type = DestroySelf
trigger1 = FrontEdgeBodyDist <= -42
Thanks in advance!