Godot Version
4.5
Question
I feel a little bit insane here.
I have a scene, CustomTooltip, that I’ve instanced within another scene via the editor.
However, when I try to run that Line2D scene, it errors at CustomTooltip’s _ready() with an error that implies the entire scene wasn’t instanced.
![]()
This is the full tooltip script, for reference:
extends PanelContainer
class_name CustomTooltip
func _ready() -> void:
%Timer.timeout.connect(_display)
func _process(_delta: float) -> void:
if visible:
global_position = get_global_mouse_position()
global_position.y += 5
## Starts timer till tooltip is made visible
func display_tooltip() -> void:
%Timer.start()
## Triggered by timer timeout, makes tooltip visible and updates position
func _display() -> void:
_update_position()
visible = true
## Updates global_position to the global_mouse_position + a small y offset
func _update_position() -> void:
global_position = get_global_mouse_position()
global_position.y += 5
func hide_tooltip() -> void:
if !%Timer.is_stopped():
%Timer.stop()
visible = false
func change_text(new_text: String) -> void:
%Label.text = new_text
I’m at a bit of a loss here. I’ve instanced other scenes before via the editor with no issues, so I must be missing something? I’m not sure what I’m doing differently here that’s breaking it. Is there something in the tooltip script that’s causing problems?

