I think cheat codes are lame anyways. For a fighting game combinations would be easy to do with like, variables or something:
Create a method called punch. You have a 3 punch combo. Each time P is pressed it calls the punch method. There is an indexing variable called PC, for punchCombo, make this = to 1. We also need a boolean called punching. Make this equal to true
Code:
punching == false
if PC == 1 Then
//punch code A
PC = PC + 1
Else if PC == 2 Then
//punch code B
PC = PC + 1
Else if PC == 3 Then
//punch code C
PC = PC + 1
Else
//Nothing
endif
punching = true
than create a method called restart punch combo. Inside the events create a 'when world starts' and loop the restart punch combo infinite times.
Code:
While punching
wait .75 seconds
PC == 1
why did I make it so that punching was true when it would've made more sense to make it false? Because while loops don't do boolean variables and !=. You can do a 'NotPunching' variable instead because that's basically what it is.