YesNoOk
avatar

Inconsistent 2-hit attack (Read 610 times)

Started by -AngelZX, August 20, 2020, 11:15:13 pm
Share this topic:
Inconsistent 2-hit attack
#1  August 20, 2020, 11:15:13 pm
  • **
  • I try to do palettes.
    • Venezuela
Using DW's KFM, I'm trying to learn how to code an attack that hits twice. I kinda made it, but the second hit is weirdly inconsistent.

It hits if the first attack misses in any situation. For example, if the opponent was crouching or jumping during the first attack, or they walk in after the first attack.

It doesn't hit if the first attack hits, or if it's blocked or parried.

Here's the code:

Spoiler, click to toggle visibilty

Spoiler, click to toggle visibilty

Spoiler, click to toggle visibilty

I was going to upload a video demonstration but I don't think it's needed, it's probably a dumb problem, right?
Re: Inconsistent 2-hit attack
#2  August 21, 2020, 12:45:54 am
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
You make the movetype idle before the second attack is initiated.


In M.U.G.E.N there is no magic button

They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.
Re: Inconsistent 2-hit attack
#3  August 21, 2020, 01:13:10 am
  • **
  • I try to do palettes.
    • Venezuela