hi everyone,
I have a problem with state 220, in the air animation file I have a red box in the 5th frame as attached. But I don't understand when the character performs, this red box does not appear to hit the opponent,
Below I attach the state code and the air code
Video in action
https://streamable.com/h870q1
in animation code i added red box
Ingame not show red box
Air code
[Begin Action 220]
Clsn2: 1
Clsn2[0] = -38, -99, 41, 5
220,5, 0,0, 3
Clsn2: 1
Clsn2[0] = -48, -102, 41, -4
220,0, 0,0, 6
Clsn2: 1
Clsn2[0] = -39, -87, 44, -1
220,1, 0,0, 3
Clsn2: 1
Clsn2[0] = -34, -91, 50, 1
220,2, 0,0, 2
Clsn1: 1
Clsn1[0] = 41, -71, 126, -38
Clsn2: 2
Clsn2[0] = -33, -71, 56, -1
Clsn2[1] = 44, -66, 114, -43
220,3, 0,0, 5
Clsn2: 1
Clsn2[0] = -36, -74, 84, 4
220,4, 0,0, 8
Clsn2: 1
Clsn2[0] = -37, -79, 30, 1
220,6, 0,0, 5
Clsn2: 1
Clsn2[0] = -39, -89, 38, 3
220,7, 0,0, 3
Standing Strong Punch state
; Standing Strong Punch
[Statedef 220]
type = S
movetype= A
physics = S
poweradd= 30
ctrl = 0
velset = 0,0
anim = 220
sprpriority = -1
[State 250, Voice]
type=playsnd
trigger1= animelem=1 && random<400
value= 200,5+ (random%3)
channel=1
[State 220, Swing Snd]
type = playsnd
trigger1 = animelem = 3
value = 1,2
[State 220, HitDef]
type=hitdef
trigger1=animelem=5
attr=S,NA
damage=45
animtype=Hard
guardflag=M
hitflag=MAF
priority=4,Hit
pausetime=12,12
sparkno = s8010
guard.sparkno = s8000
sparkxy=-15,-69
hitsound = s10,3
guardsound = 6,0
ground.type=Low
ground.slidetime=16
ground.hittime=16
ground.velocity=-10
air.type=Low
air.hittime=12
air.velocity=-5,-7
air.cornerpush.veloff=0
yaccel=.5
envshake.time = 12
envshake.ampl = 6; or 7
fall.envshake.time = 20
fall.envshake.ampl = 8
[State 420, jump combo]
type = Changestate
trigger1 = movehit ; when you hit the opponent
trigger1 = command = "holdup"
value = 7001 ; the superjump state
ctrl = 1 ; these menas that you re-gain control
[State 220, StateTypeSet: Idle]
type = StateTypeSet
trigger1 = AnimElemTime(4) >= 0
moveType = I
[State 220, End]
type = ChangeState
trigger1 = !AnimTime
value = 0
ctrl = 1