This repository has been archived on 2024-05-12. You can view files and clone it, but cannot push or open issues or pull requests.
GMTK-2023/Game/Player/scripts/Dash.gd

12 lines
164 B
GDScript

extends Node2D
@onready var timer : Timer = $Timer
func start_dash(dur):
timer.wait_time = dur
timer.start()
func is_dashing():
return !timer.is_stopped()