In my engine, I need players to be able to perform combos when attacking.
The concept I had for this is to use an array to buffer method references that correspond to the attacks that are being keyed in, then simply call each method and perform each attack until either the combo is completed or a condition arises that would halt the remainder of the buffer (at which point the entire buffer would be zeroed out.)
Is this a sensible approach?


Reply With Quote