Hello, I'm trying to use the following code to change the visibility of an "incorrect" text when an area is clicked. I was following a tutorial and tried to implement it similarly but I'm recieving some errors , why is that?
extends Area2D
@onready var incor = get_node("incorrect1")
func _ready() -> void:
input_pickable = true
self.connect(func(event):
if event.is_action_pressed("mouseleft"):
incor.visibile = true)
Errors:
Line7:Too few arguments for "connect()" call. Expected at least 2 but received 1.
Line 7:Invalid argument for "connect()" function: argument 1 should be "StringName" but is "Callable".