Files
godot_number_factory/extractor.gd
T
2026-06-22 18:54:09 -06:00

20 lines
508 B
GDScript

extends Sprite2D
var producer_value: int
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
print("Placed Extractor at: (%s, %s)" % [self.global_position[0], self.global_position[1]])
func setup(producer_value):
producer_value = producer_value
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
pass
func _on_timer_timeout() -> void:
print("Extractor producing %s" % producer_value)
$Timer.start()