Buffer

Inherits: Node < Object

A buffer which stays true for a specified time duration before turning false.

This is really useful for temporarily storing an attack state, which will allow combo moves!!

Properties

float

duration

0.5

bool

buffer

false

float

timer

0.0

Methods

void

_process(delta: float)

void

start()


Signals

end() 🔗

Emitted whenever the buffer ends/finishes.


Property Descriptions

float duration = 0.5 🔗

How long the buffer lasts.


bool buffer = false 🔗

The boolean which tells if the buffer is currently active or not.


float timer = 0.0 🔗

Time duration left before the ends.


Method Descriptions

void _process(delta: float) 🔗

There is currently no description for this method. Please help us by contributing one!


void start() 🔗

Activates the buffer.