Here is dash code for my KAGE 2.0 (Fwd dash & Back dask)
;-----------------------------------------------------------------------------------------------
;Dash
[Statedef 100]
type=S
movetype=I
physics=N
velset=0,0
anim=102
ctrl=0
sprpriority=1
[State 100, Able to Jump]
type = ChangeState
trigger1 = Command = "holdupfwd"
value = 40
[State 52, Assert: NoWalk]
type = AssertSpecial
trigger1 = 1;anim != 5
flag = NoWalk
[State 52, Effect]
type = PlaySnd
trigger1 = animelem = 4
value = 1000,3
channel = 20
[State 52, Effect]
type = PlaySnd
trigger1 = time = 1
value = 130,1
channel = 20
[State 102, vel]
type=velset
trigger1=time>9&&time<18;animelem=4
x=-1*const(velocity.run.back.x);-1.2*const(velocity.run.back.x)
y=const(velocity.run.back.y)
[State 102, end]
type=changestate
trigger1=!animtime
value=101
ctrl=0
;-------------------------------------------------------------------------------------------------------------
;Dash Stop
[Statedef 101]
type = S
movetype = I
physics = S
[State 0, NotHitBy]
type = NotHitBy
trigger1 = 1
value = SCA
time = 1
[State 101, ChangeAnim]
type = ChangeAnim
trigger1 = !Time
value = 101
[State 101, End]
type = ChangeState
trigger1 = !AnimTime
value = 0
ctrl = 1
;------------------------
;Dash Back
[Statedef 105]
type=S
movetype=I
physics=S
velset=0,0
anim=105
ctrl=0
sprpriority=1
[State 52, Assert: NoWalk]
type = AssertSpecial
trigger1 = 1;anim != 5
flag = NoWalk
[State 52, Effect]
type = PlaySnd
trigger1 = animelem = 4
value = 1000,3
channel = 20
[State 52, Effect]
type = PlaySnd
trigger1 = time = 1
value = 130,1
channel = 20
[State 105, vel]
type=velset
trigger1=time>9&&time<18;animelem=4
x=1*const(velocity.run.back.x);-1.2*const(velocity.run.back.x)
y=const(velocity.run.back.y)
[State 105, end]
type=changestate
trigger1=!animtime
value=106
ctrl=0
;----------------------------------------------------------------------------------------------------
;Dash Back Landing
[Statedef 106]
type = S
movetype = I
physics = S
anim = 106
velset = 0, 0
[State 106, Landing Sound]
type = PlaySnd
trigger1 = !Time
value = 52,0
[State 106, End]
type = ChangeState
trigger1 = !AnimTime
value = 0
ctrl = 1
Good Luck!!!