Post #72: Spawning Dice on a Timer
Today's progress - adding the ability to select the dice scene manually you want to have spawn, by exporting the variable: @export var dice_scene: PackedScene.
Then, capturing the timeout() signal from a timer node, and spawning the dice on a timer. Here's that code:
func spawn_dice() -> void:
var new_dice: Dice = dice_scene.instantiate()
add_child(new_dice)
func _on_spawn_timer_timeout() -> void:
spawn_dice()
Here is a screenshot of it in action!

(This is an update as I work through the great Master the Godot 4.6 / 4.7 Engine, Build Engaging 2D Games, Learn GDScript and Ignite Your Game Development Journey! tutorial. I'm not affiliated with the course author, I just want to continue to drop credit for their great work!)