does anyone knows how to print the output on a label or something i did some research and i didnt find anything.
Are you asking to set the text of a label node?
$Label.text = 'insert text here'
Where ‘$Label’ is the name and path of your Label node in your scene tree that you want to change.
You can read more here:
Specifically
I mean the console output
extends Node
# Export a variable to assign the label in the editor
@export var output_label: Label
func _ready():
# Set the text of the label
output_label.text = "Hello, Godot!"
# Or update the label text dynamically
print_to_label("This is a dynamic message")
func print_to_label(message: String):
output_label.text = message
Maybe this will help you.
print or print_debug?
print ("ENEMY BUILDING FIRING")