Continuing an attack

Started by Tylerr, May 31, 2015, 04:36:26 AM

Previous topic - Next topic

Tylerr

I want to make an attack where you continuously press a button to keep attacking

basically i want to keep the character in the same state as long as the player is continuing to press the A key (or whatever button)

how would i do that?


Odb718

;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   ;<<< As long as P1 is in state 200 you can keep pressing X to restart Statedef 200.

You might want to add in some time checks as a trigger. This way you cant restart it too fast or too slow.
vVv Gouken718 vVv SabreTooth718 vVv