
T
Publisher
tamersoup625
BUFFer - Generic purpose buffer
Tools
Buffer Input Action Timing Gameplay Management Example Control
This plugin adds the Buffer class for managing the execution of one player action with buffering. It can both buffer one player input for a set amount of time to run the action when allowed, and buffer the potential of an action for a set amount of time to run it when a player input is recieved. The plugin includes an example use.
BUFFer: Generic purpose buffer for Godot 4.3
This plugin adds the Buffer class for managing the execution of one player action.
It can both buffer one player input for a set amount of time to run the action when allowed, and buffer the potential of an action for a set amount of time to run it when a player input is recieved.
Example use
var _fire_buffer = Buffer.new(0.2)
func _process(delta):
_fire_buffer.update(
Input.is_action_just_pressed("fire"),
ammo > 0,
delta,
)
if _fire_buffer.should_run_action():
shoot_bullet()