
K
Publisher
keldowin
ExtendTimer
Tools
Timer Signals ETimer Wait Callback Autostart OneShot
Godot 4.x plugin. Adds an improved timer with additional signals
This plugin has been mirrored from the Godot Asset Library.
The plugin author is in no way affiliated with Gadget.
If you are the author of this plugin and would like this mirror removed, please contact support@gadgetgodot.com.
ExtendTimer for Godot Engine 4.x
Godot 4.x plugin. Adds an improved timer with additional signals
📂 Installation
- Download ExtendTimer addon.
- Extract the
ExtendTimerfolder into theaddonsfolder within your Godot project directory. - Enable the addon in Godot's plugins tab. (
Project > Project Settings > Plugins)
📃 Usage
- Add the
ETimernode to your scene(s) like any regular node in Godot. - Adjust the wait time values to your liking through the inspector tab.
- Start the
ETimerby calling the$ETimer.start()function or by enabling autostart in the inspector tab.
🔢 Varibles, signals, methods
Varibles
emun('Idle','Physics') process_callback : int- Timer update method (_process(), _physic_process())range(0.1, 86400.0, 0.1) time_wait : float = 1.0- After how many milliseconds does the timer end. (1.0 = one second)export oneshot : bool = false- Whether to delete the timer after the end.export autostart : bool = false- Whether to start the timer automatically at the end (and start of the scene)onready time_left : float = 0.0- A local variable used to calculate the remaining time (time_left = time_wait).export time_emit : Array[float]- A certain second at which the signal will be triggeredevery_time(time_left: int)and return this emit second
Signals
timeout- The end of the timerevery_second- Each subtracting second from the timerevery_milisecond- Each subtracting millisecond from the timerevery_time(time_left: int)- Each subtracting time_emit from the timertimer_stop- Timer stop use by function$ETimer.stop()timer_start- Timer start use by function$ETimer.start()
Methods
.start() -> void- Start timer.stop() -> void- Stop timer.reset() -> void- Reset timer (time_left = time_wait).get_time_left() -> int- Return time_left like round int.get_time_wait() -> float- Return time_wait
Credit by Keldowin for Godot Engine 💙
Timer icon use from Godot Engine