Main Menu

Combos?

Started by bieux, February 06, 2016, 11:07:04 PM

Previous topic - Next topic

bieux

Do you know that thing? when you hit someone and then you can press another button to immediately do another hit and create a gigantic string of hits in a combo? Like Tekken?

Well, that doesn't quite happen in my character, because I have to wait for it's former attack animation to stop before the other attack animation is played. It doesn't cut directly to the other attack, like it would in Tekken.

I don't exactly know if I have to mess into the sprite-part of my character to make the animations go faster or into the code-part of my character and try figuring out how to make an attack cut right to another attack...

What would be recommended, or more efficient that is to say?
Intense transactions

Felkazz

Code the combo in the CMD
For example, I have this code for a Light Punch in my CMD:

; Light Punch
[State -1, Light Punch]
type = ChangeState
value = 200
triggerall = command = "x"
trigger1 = statetype = S
trigger1 = ctrl

This is a basic CMD to send the char to the state you want, in this case, state 200

Now, I have this code for a Medium Punch in my CMD and I want the char to be able to do it right after hitting with the Light Punch

; Medium Punch
[State -1, Medium Punch]
type = ChangeState
value = 210
triggerall = command = "y"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = StateNo = 200
trigger2 = MoveContact
[code]
See the difference? Now the char will normally make the medium punch by pressing Y, just like the light punch is done by pressing X, BUT, we now have trigger2, and these triggers says that, if the char is on state 200 (Light Punch) and he hits the enemy (or the enemy guarded the hit), he will be able to imediatally go to the Medium Punch state (210)

bieux

Much easier than I thought it would be! thanks a lot
Intense transactions