YesNoOk
avatar

Character attacks unblockable when they shouldn't be (Read 3165 times)

Started by Neurokinetic, April 13, 2025, 10:22:28 am
Share this topic:
Character attacks unblockable when they shouldn't be
#1  April 13, 2025, 10:22:28 am
  • Inheritor of the Nightmare
  • Living my best Second South Town life.
    • USA
Hi, I'm currently building my own fighting game using MUGEN for a project using version 1 with Fighters Factory Classic and am failing to understand why this particular issue is occurring. The standing light punch seems to be unblockable, as when executed from non-hit distance it will trigger the opponent's guard to rise, but when in close enough distance to make contact, the attack hits instead. This is the only move this is true for, as I've also programmed the Standing LK and it does not have this problem.

It's attribute is S, NA. Animtype is light. Guard flag is MA. Hitflag is MFA.

It is particularly confusing since the base code is based directly from/on KFM who also does not have the issue. It is a one-frame attack with 10 tick speed (if those facts matter at all).  Any guidance on what may be causing the issue would be greatly appreciated.
Re: Character attacks unblockable when they shouldn't be
#2  April 13, 2025, 11:02:02 am
  • *****
  • Resident Tosspot
  • Pftheh
    • UK
    • plasmoidthunder.neocities.org
The issue is your attack occurs on frame 1. The opponent isn't able to guard until frame 2 of an attack, unless they were already guarding.

Oh, I want a diagram. I fucking love diagrams.
Re: Character attacks unblockable when they shouldn't be
#3  April 13, 2025, 05:13:45 pm
  • Inheritor of the Nightmare
  • Living my best Second South Town life.
    • USA
Thank you! Does that have to do with something in the CNS file or on what frame of the animation there is a damage hitbox? I ask because I can't find any part of the CNS file that would determine that but the standing light kick also has a frame 1 attack hitbox, but it didn't have the same "being unblockable" issue yet they're both the same speed.

I changed my standing punch to have a damage hitbox on the second frame and it worked fine, so I've no doubt that was the problem, I'm just curious as to the inconsistency.
Re: Character attacks unblockable when they shouldn't be
#4  April 13, 2025, 07:18:35 pm
  • *****
  • Resident Tosspot
  • Pftheh
    • UK
    • plasmoidthunder.neocities.org
It's a combination of a HitDef and hitboxes within the anim. If both the HitDef and hitbox occur on frame 1, then it's unblockable.

Oh, I want a diagram. I fucking love diagrams.
Re: Character attacks unblockable when they shouldn't be
#5  April 14, 2025, 06:40:52 pm
  • Inheritor of the Nightmare
  • Living my best Second South Town life.
    • USA
What part of the CNS file in the HitDef affects how the frame comes out? is it the "trigger1 = Time = x"?