YesNoOk
avatar

Character flies up without falling after getting hit (Read 877 times)

Started by PandaHaze, October 08, 2020, 10:37:27 AM
Share this topic:
Character flies up without falling after getting hit
#1  October 08, 2020, 10:37:27 AM
  • *
  • M.U.G.E.N SHALL NOT DIE!!!
    • USA
I am using "SOA's" Jubei while running through matches, he'll often fly up and not come down without fail.
I observed this problem using debug mode and found that his state [5030] is causing the problem
I then attempted to fix this by changing the types of all the states causing errors to "s" type
However, his [5030] state is still causing problems...

Here's the code I'm working with

[Statedef 5030]
type    = S
movetype= H
physics = N
ctrl = 0

[State 5030, 1]
type = VelAdd;Gravity
trigger1 = 1
y = GetHitVar(yaccel)

[State 5030, 2]
type = HitVelSet
trigger1 = Time = 0
x = 1
y = 1

[State 5030, 3]
type = ChangeState
triggerall = !HitFall
trigger1 = HitOver
trigger2 = Vel Y > 0    ;Hit ground
trigger2 = Pos Y >= 10  ;.
value = 5040 ;HITA_RECOV

[State 5030, 4]
type = ChangeState
triggerall = HitFall
trigger1 = HitOver
trigger2 = Vel Y > 0    ;Hit ground
trigger2 = Pos Y >= 10  ;.
value = 5050 ;HITA_FALL

[State 5030, 5]
type = ChangeState
trigger1 = AnimTime = 0
value = 5035 ;HITA_UP (transition)

I have many other characters doing this and would like to learn a fix for it
Re: Character flies up without falling after getting hit
#2  October 08, 2020, 11:40:34 AM
  • *****
  • Resident Tosspot
  • Pftheh
    • UK
    • plasmoidthunder.neocities.org
Absolutely do not do that; this is an air hitstate and it is identical to the default in WinMUGEN's common1.cns, so it's not what's causing the issue. Perhaps consider that it's the character(s) you're fighting, especially since you've said other characters are also doing it.
3DS FC: 0516 - 7483 - 3564
Oh, I want a diagram. I fucking love diagrams.
Re: Character flies up without falling after getting hit
#3  October 08, 2020, 01:06:59 PM
  • *
  • M.U.G.E.N SHALL NOT DIE!!!
    • USA
Absolutely do not do that; this is an air hitstate and it is identical to the default in WinMUGEN's common1.cns, so it's not what's causing the issue. Perhaps consider that it's the character(s) you're fighting, especially since you've said other characters are also doing it.

Ahh, i see i'll change it back then
I have every character patched with add004 so the problem might be somewhere in there because they all work fine until i patch them
Here's a screenshot of the debug coding

Re: Character flies up without falling after getting hit
#4  October 08, 2020, 04:00:23 PM
  • *****
  • Resident Tosspot
  • Pftheh
    • UK
    • plasmoidthunder.neocities.org
Yeah he's going into an invalid stateno, so now it's a question of what's causing him to do so.
3DS FC: 0516 - 7483 - 3564
Oh, I want a diagram. I fucking love diagrams.