
Publisher
tamersoup625
BUFFer - Generic purpose buffer
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.
This plugin has been mirrored from the Godot Asset Library.
The plugin author is in no way affiliated with Gadget.
If you are the author of this plugin and would like this mirror removed, please contact support@gadgetgodot.com.
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()