Evening, guys.
I'm attempting to implement a fancy attack combo thing where, when you press the attack button during an attack, it'll execute the next attack in the chain once the first is finished. In order to do so, I'm wanting to set the boolean **comboQueued** to *true* if it detects that the attack button is pressed. This is executed in the following code:
function normalSwing () {
if(Input.GetButtonDown("Attack"))
comboQueued = true;
}
Unfortunately, that very code is activated by a press from the same button that I want to activate the function, so it just sets **comboQueued** to *true* all the time.
Any way to make sure that this only executes when the attack key's been released and pressed a second time?
↧