YesNoOk
avatar

Move cancelling itself from initial button press. (Read 2240 times)

Started by Nocturnis, July 26, 2022, 09:10:14 pm
Share this topic:
Move cancelling itself from initial button press.
#1  July 26, 2022, 09:10:14 pm
  • **
  • I dress like your Great Great Grandfather.
I have a state from which my character can perform a special attack. The state activates normally by pressing qcf+kick. The special activates by pressing any punch. Both of these things function normally.

I want to be able to cancel the state by pressing kick. Mugen, however, is reading the kick (a,b,c) from the initial qcf+kick and cancelling the move within it's first frame.

Code:
[State 815, 6] ;Cancel State / This is the problem area.
type = ChangeState
trigger1 = time = 40 ;This allows the state to run for a bit before cancelling on its own.
trigger2 = command = "a" || command = "b" || command = "c"
value = 12 ;Stand up cancel
ctrl = 1

I'm probably overlooking something super simple here, but I'm stumped.
Last Edit: July 26, 2022, 10:03:34 pm by Nocturnis
Re: Move cancelling itself from initial button press.
#2  July 26, 2022, 09:46:25 pm
  • ******
    • Portugal
    • network.mugenguild.com/pots/
Sounds like you already figured out the issue. I think there are two solutions:

1- Add anything to trigger2 that prevents it from happening at time = 0. Time > 0 or something

2- Place that changestate in State -1 instead
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: Move cancelling itself from initial button press.
#3  July 26, 2022, 10:04:44 pm
  • **
  • I dress like your Great Great Grandfather.
Sounds like you already figured out the issue. I think there are two solutions:

1- Add anything to trigger2 that prevents it from happening at time = 0. Time > 0 or something

2- Place that changestate in State -1 instead



Time >0!!! Thank you! I just had a total mental block on this one.