I'm tring to detect whether or not the mouse is hovering over a certain position on the screen. At first I wanted to use an Area2D but this gives me errors regarding call_deffered() which I find hard to solve. I noticed that ColorRects also have a mouse_entered signal, however I can never get it to fire after connecting it. How do I solve this? To be clear, I have already checked the mouse filters in the ColorRect node. The node structure is set up as follows:

Node2D:

  • ColorRect
  • Sprite2D
  • I think I got it, it probably has something to do with texture ordering. I have the ColorRect node on index 1, but I'm adding a player node at a higher index, which overlaps with the ColorRect. I'll look into it further from here, thanks for your time

After replicating, it works fine for me. The default mouse filter options were fine too.
It might be an issue with your script (redacted)Dexy. Care to share what you've written?

edit:
Please excuse me, I forgot the year is 2023 and we don't assume everybody on the internet is a dude anymore.

I think I got it, it probably has something to do with texture ordering. I have the ColorRect node on index 1, but I'm adding a player node at a higher index, which overlaps with the ColorRect. I'll look into it further from here, thanks for your time

Whatever happens, you should share your solution for whoever finds this thread and suffers the same issue.
It's gonna stay here a while :-)

Yup, that was it. Don't ask how long I spent on this... -_-