Check out our latest project ✨ OpenChapter.io: free ebooks the way its meant to be 📖

BUFFer - Generic purpose buffer

An asset by TamerSoup625
The page banner background of a mountain and forest
BUFFer - Generic purpose buffer hero image

Quick Information

0 ratings
BUFFer - Generic purpose buffer icon image
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.

Supported Engine Version
4.3
Version String
1.0
License Version
MIT
Support Level
community
Modified Date
1 year ago
Git URL
Issue URL

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()

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.

Reviews

0 ratings

Your Rating

Headline must be at least 3 characters but not more than 50
Review must be at least 5 characters but not more than 500
Please sign in to add a review

Quick Information

0 ratings
BUFFer - Generic purpose buffer icon image
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.

Supported Engine Version
4.3
Version String
1.0
License Version
MIT
Support Level
community
Modified Date
1 year ago
Git URL
Issue URL

Open Source

Released under the AGPLv3 license

Plug and Play

Browse assets directly from Godot

Community Driven

Created by developers for developers