Files
godot_number_factory/producer.gd
T
bionickatana 2776482c21
Build Godot Project (Linux & Windows) / build-linux (push) Successful in 29s
Build Godot Project (Linux & Windows) / build-windows (push) Successful in 32s
finished belts. Some random errors in corners...
2026-06-22 21:21:32 -06:00

30 lines
697 B
GDScript

extends Sprite2D
var output_value: int
func setup(out_value):
$tooltip.hide()
print("Producer spawned physically with a value of: ", out_value)
$text_value.text = str(out_value)
$tooltip.text = "Placed at: (%s, %s)" % [self.global_position[0], self.global_position[1]]
print($tooltip.size )
$tooltip.size = Vector2i(100, 100)
output_value = out_value
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
pass
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
pass
func _on_control_mouse_entered() -> void:
$tooltip.show()
func _on_control_mouse_exited() -> void:
$tooltip.hide()