YesNoOk
avatar

Why is the red box Clsn1 missing even though I added it in the air file? (Read 12861 times)

Started by alongcaca, October 21, 2024, 01:51:13 am
Share this topic:
Why is the red box Clsn1 missing even though I added it in the air file?
#1  October 21, 2024, 01:51:13 am
  • **
    • Vietnam

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
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
Code:
; 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
Re: Why is the red box Clsn1 missing even though I added it in the air file?
#2  October 21, 2024, 02:11:00 am
  • **
  • Sr. Símio Enfermo
    • Brazil
    • www.mediafire.com/folder/utha9mw5dg7tn/My_Chars
Because of this:
Code:
[State 220, StateTypeSet: Idle]
type = StateTypeSet
trigger1 = AnimElemTime(4) >= 0
moveType = I
When a char's movetype is equal to I (Idle) it's clsn1 boxes is ignored.
In Anim 220, it's clsn1 is in AnimElem 5. But you're using StateTypeSet in AnimElem 4 and upwards.
Instead of AnimElemTime(4) >= 0, use AnimElemTime(6) >= 0.

Edit: typo.
Re: Why is the red box Clsn1 missing even though I added it in the air file?
#3  October 21, 2024, 06:24:44 am
  • **
    • Vietnam
Because of this:
Code:
[State 220, StateTypeSet: Idle]
type = StateTypeSet
trigger1 = AnimElemTime(4) >= 0
moveType = I
When a char's movetype is equal to I (Idle) it's clsn1 boxes is ignored.
In Anim 220, it's clsn1 is in AnimElem 5. But you're using StateTypeSet in AnimElem 4 and upwards.
Instead of AnimElemTime(4) >= 0, use AnimElemTime(6) >= 0.

Edit: typo.


Thanks for your feedback, I have fixed it according to your suggestion.
Re: Why is the red box Clsn1 missing even though I added it in the air file?
#4  October 21, 2024, 09:54:39 am
  • ******
    • Portugal
    • network.mugenguild.com/pots/
In the Nightly build these will show up as faded red.
You can help with Ikemen GO's development by trying out the latest development build and reporting any bugs on GitHub.
My Mugen and Ikemen content can also be found here.
Re: Why is the red box Clsn1 missing even though I added it in the air file?
#5  October 21, 2024, 10:12:14 am
  • **
  • Sr. Símio Enfermo
    • Brazil
    • www.mediafire.com/folder/utha9mw5dg7tn/My_Chars