mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
Separate Node editor dock
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
<description>
|
||||
The [Timer] node is a countdown timer and is the simplest way to handle time-based logic in the engine. When a timer reaches the end of its [member wait_time], it will emit the [signal timeout] signal.
|
||||
After a timer enters the scene tree, it can be manually started with [method start]. A timer node is also started automatically if [member autostart] is [code]true[/code].
|
||||
Without requiring much code, a timer node can be added and configured in the editor. The [signal timeout] signal it emits can also be connected through the Node dock in the editor:
|
||||
Without requiring much code, a timer node can be added and configured in the editor. The [signal timeout] signal it emits can also be connected through the Signals dock in the editor:
|
||||
[codeblock]
|
||||
func _on_timer_timeout():
|
||||
print("Time to attack!")
|
||||
|
||||
Reference in New Issue
Block a user