Input Buffer
Last updated
Was this helpful?
Last updated
Was this helpful?
The Input Buffer Component (AC_InputBuffer) ensures smooth gameplay by queuing inputs when actions are unavailable (e.g., mid-animation). When the player inputs a new action while another is active, the system waits for the current action to finish before executing the queued action.
For e.g, Dodging is an action. Jumping is also an action. If we try to Jump while Dodging, we will only be able to Dodge when the buffer is closed:
The component is added to the Character class by default (B_Soulslike_Character).
Player inputs an action (e.g., light attack).
If the player is already performing an action, the input is stored in the AC_InputBuffer.
Once the current action completes (and the buffer is closed), the queued action is executed.
The buffer windows are handled through the