0 votes

I dunno why this won't work, it's driving me crazy

extends Node

onready var KofiArea = get_node("ColorRect/KofiButton/Area2D")

func _ready():
       KofiArea.connect("mouse_entered", self, "_Kofi_Enter")

func _Kofi_Enter():
       print("ENTER")

I have no idea why this isn't working. The collision shape isn't disabled, pickable is enabled, and even interchanging this area with another (working) area from another scene doesn't fix it. What's going on?

in Engine by (27 points)

1 Answer

0 votes

Turn the mouse_filter of the ColorRect to ignore may help you. The colorrect at default will block the node under it to detect the mouse.

by (315 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.