You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/classes/Timer.xml
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@
9
9
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:
10
10
[codeblock]
11
11
func _on_timer_timeout():
12
-
print("Time to attack!")
12
+
print("Time to attack!")
13
13
[/codeblock]
14
14
[b]Note:[/b] To create a one-shot timer without instantiating a node, use [method SceneTree.create_timer].
15
15
[b]Note:[/b] Timers in Time mode are affected by [member Engine.time_scale]. The higher the time scale, the sooner timers will end. How often a timer processes may depend on the framerate or [member Engine.physics_ticks_per_second].
@@ -87,4 +87,4 @@
87
87
Timer works with frames. Speed depends on the framerate. Accepts non-fractional values only.
0 commit comments