Dash ability with charges and invulnerability frames
In your harnessGodot componentMIT
Dash at a fixed speed for a set time in a locked direction, spend and recharge charges one at a time, keep a fraction of the speed on exit and stay invulnerable for a window that can outlast the dash.
ATTRIBUTION.mdLICENSEREADME.mdbaltor_test.gdcomponent.jsondash_ability.gdinspect_gdscript.pyrun_tests.gdtest_package.pytests/test_dash_ability.gdverification/native.json
Full files in your harness.
What it takes and gives
- Class
- BaltorDash, extends Node
- Methods
- try_dash(direction: Vector2) -> bool; advance(delta: float) -> void; cancel() -> void; is_dashing() -> bool; is_invulnerable() -> bool; get_dash_velocity() -> Vector2; get_exit_velocity() -> Vector2; get_charges() -> int; and 1 more
- Signals
- dash_started, dash_ended, charges_changed
- Exports
- dash_speed, dash_time, max_charges, recharge_time, invulnerability_time, end_speed_factor, auto_advance
- Placement
- res://baltor/godot_components/dash_ability/
Limits. Keeps time and velocity only; the owner applies the velocity and checks is_invulnerable() when taking damage. 2D vectors. The dash does not stop at walls by itself; call cancel() on a collision if needed. Verified with Godot 4.7.2 headless; written against the Godot 4.3 API.
Details
- Kind
- Godot component
- Engine
- Godot 4.3 or later
- Files
- 11 files, 76.6 KB
- Licence
- MIT
- Declared effects
- reads files, runs commands
- Checked with
- Godot 4.7.2, headless
- Checks
- godot parse check only, godot gdscript tests, godot tests reject gutted component, godot editor import, godot contract reflection, godot readme usage compiles
- Techniques
- timed dash state, charge and recharge timer, invulnerability window
- Tags
- dash, ability, invulnerability, i-frames, movement, cooldown, action
- Identity
library.supply.creative_originals.00b4035ffb56abf6e56e43d8.57f1e99518b8138e- Version
57f1e99518b8138e90635d68f42d63f1f71a675bf6eccca9c012d571538aa423
The version is the SHA-256 of the item your harness downloads; every file in it names its own checksum.
Something wrong with this item, its rights or its safety? Report it on the support page, or from your harness after a download.