YesNoOk
avatar

A button while holding Forwards should be a different move but isn't (Read 2374 times)

Started by Mimikyutest77, June 18, 2019, 08:13:20 pm
Share this topic:
A button while holding Forwards should be a different move but isn't
#1  June 18, 2019, 08:13:20 pm
  • avatar
  • **
    • UK
Hello, I've already got this in progress character's X attack working. I tried setting up a "Press X while holding Forwards to do a different normal attack" mechanic and it isn't working, the character just crashes mugen on startup while the error message says "fx" isn't the right input for this and neither is "f,x" or "f+x".

What am I doing wrong? It's probably something obvious because this is my first mugen character and the second attack I've put onto him so far.
Re: A button while holding Forwards should be a different move but isn't
#2  June 18, 2019, 08:19:41 pm
  • ****
    • crepa.neocities.org
These commands won't work. Try using them separated, like this:
triggerall = command = "holdfwd" && command = "x"
Re: A button while holding Forwards should be a different move but isn't
#3  June 24, 2019, 01:15:03 am
  • avatar
  • **
    • UK
That got Mugen to stop crashing on startup and when I try to test the character with Ctrl+M.

But my character still isn't doing the forwardX attack even though it's programmed correctly now. KFM just chooses to do regular X attack each time. (for now my character is just KFM while I learn this)

To test this system I've made ForwardX an identical copy of 200 Standing Light Punch that's on State 205 and deals x10 the damage it should. I'll design the move properly and make its damage normal when I can actually get direction-plus-button inputs to work properly.

I'm sorry to take your time.
Re: A button while holding Forwards should be a different move but isn't
#4  June 24, 2019, 04:54:09 am
  • ***
  • I am a little editor of pixel art
    • Brazil
    • felipexavier.stuart@gmail.com
First fix was made, one thing I do is take the neutral button command and put a && command != "holdfwd"
Like
[state -1, X]
Trigger1 = Command = "x" && command != "holdfwd"

[state -1, F+X]
Trigger1 = command = "x" && command = "holdfwd"
Re: A button while holding Forwards should be a different move but isn't
#5  June 24, 2019, 05:20:30 am
  • ****
    • crepa.neocities.org
Oh, I forgot to mention you need to put your new attack above the one without holding forward, like this:

;Your new move
[State -1, Stand Light Punch]
type = ChangeState
value = 205
triggerall = command = "x" && command = "holdfwd"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl

;Stand Light Punch
[State -1, Stand Light Punch]
type = ChangeState
value = 200
triggerall = command = "x"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 200
trigger2 = time > 6

Harder commands should be on top of easy ones.
Re: A button while holding Forwards should be a different move but isn't
New #6  June 25, 2019, 06:57:42 am
  • *****
  • Shame on you!
    • USA
Because you asked such a different question you should make a new topic.
Once your question(s) is solved, use the solved button at the bottom left.
I'll split your topic for you.
vVv Ryuko718 Updated 10/31/22 vVv
Last Edit: June 25, 2019, 07:00:51 am by Odb718