godot check if timer is running

To check if a timer is running in GDScript in the Godot game engine, you can use the is_timer_active() function. This function returns true if the specified timer is currently running, and false otherwise. Here's an example of how you can use it:

# Check if a timer named "my_timer" is running
if is_timer_active("my_timer"):
    print("The timer is running")
else:
    print("The timer is not running")

Make sure to replace "my_timer" with the actual name of the timer you want to check. This code will print either "The timer is running" or "The timer is not running" based on the status of the timer.