YesNoOk
avatar

How do you detect if Player is in hitstun or n (Read 181 times)

Started by camji, October 26, 2019, 11:25:47 pm
Share this topic:
How do you detect if Player is in hitstun or n
#1  October 26, 2019, 11:25:47 pm
  • avatar
    • USA
Hello, I'm very new here but I am currently trying to work on a way to prevent infinites by changing the move based on how many times you landed it in a combo. I'm right now trying to track the number of times the move is landed using a variable each but I ran into a roadblock when I had to reset the variable after the combo. I need a way to detect whether a combo has finished, please help.
Re: How do you detect if Player is in hitstun or n
#2  October 27, 2019, 01:18:55 am
  • ***
  • CPU Purple Heart
    • USA
    • www.dailymotion.com/2a8130871d2742d2f4da3b069
 trigger1 = enemy,movetype != H should be able to tell you that P2 is no longer in hitstun. If they're not, then they're not in hitstun. For good measures, also add trigger2 = moveguarded as another trigger for when the var should reset since I am sure you don't want it to keep going if the move gets guarded somehow. However, if you care about simul mode, create separate sets of triggers for enemy using enemynear instead of enemy.