[State 3200, Helper Donut]
type = Helper
trigger1 = AnimElemTime(3) = 0
name = "Super Donut"
ID = 3204
pos = Ceil(35 * Const(size.xscale)), Ceil(-58 * Const(size.yscale)) ;30, -52
postype = P1
stateno = 3204
ownpal = 1
size.xscale = (5 * Const(size.xscale)) / 17 ;0.25
size.yscale = (2.5 * Const(size.yscale)) / 9 ;0.25
;---------------------------------------------------------------------------
; Super Donut Hit
[Statedef 3206]
type = A
movetype = A
physics = N
anim = 1
velset = 0, 0
ctrl = 0
hitcountpersist = 1
sprpriority = 2
[State 3206, Safety]
type = ChangeState
trigger1 = !NumTarget
trigger1 = Time = 0
trigger2 = Root, StateNo != 3200 && Root, StateNo != 3201
trigger3 = Time > 50
value = 3205
[State 3206, AssertSpecial]
type = AssertSpecial
trigger1 = 1
flag = NoShadow
[State 3206, TargetState]
type = TargetState
triggerall = NumTarget
triggerall = Root, StateNo = 3200 || Root, StateNo = 3201
trigger1 = Time = 0
value = 3202
[State 3206, BindToTarget]
type = BindToTarget
triggerall = NumTarget
trigger1 = Time = 0
time = 57
pos = 0, (Target, Const(size.mid.pos.y)), Foot
[State 3206, Donut Front]
type = Explod
trigger1 = Time = 0
anim = 3206
ID = 3207
pos = 0, 0
postype = P1
bindtime = 46
removetime = 46
scale = Const(size.xscale), Const(size.yscale)
sprpriority = 2
ownpal = 1
[State 3206, Donut Back]
type = Explod
trigger1 = Time = 0
anim = 3207
ID = 3207
pos = 0, 0
postype = P1
bindtime = 46
removetime = 46
scale = Const(size.xscale), Const(size.yscale)
sprpriority = 0
ownpal = 1
[State 3206, Donut Sound]
type = PlaySnd
trigger1 = Time = 0
value = 1800, 1
channel = 1
[State 3206, ModifyExplod]
type = ModifyExplod
trigger1 = NumExplod(3207)
trigger1 = Time < 33
ID = 3207
scale = Const(size.xscale) * (2 - (0.03125 * Time)), Const(size.yscale) * (2 - (0.03125 * Time))
[State 3206, ModifyExplod]
type = ModifyExplod
trigger1 = NumExplod(3207)
trigger1 = Time >= 33 && Time <= 45
ID = 3207
scale = Const(size.xscale) * (1 - (0.03125 * (Time - 32))), Const(size.yscale) * (1 - (0.03125 * (Time - 32)))
[State 3206, ChangeState]
type = ChangeState
trigger1 = Time >= 46
trigger1 = Root, StateNo = 3201
value = 3208