Input Buffer

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:

In the video, the Jump action is being triggered simultaneously with the Dodge action. Since Dodge action is triggered first, Jump action is queued.

The component is added to the Character class by default (B_Soulslike_Character).

How it Works

  1. Player inputs an action (e.g., light attack).

  2. If the player is already performing an action, the input is stored in the AC_InputBuffer.

  3. Once the current action completes (and the buffer is closed), the queued action is executed.

Example Usages

Queueing an action:

Jump Action is queued.
When buffer is consumed, action will be performed.

The buffer windows are handled through the ANS_InputBuffer notify state.

Last updated

Was this helpful?