Topic was automatically imported from the old Question2Answer platform.
Asked By
Finboror
And I have no idea why. I’ve set pickable, monitoring, monitorable and everything else to true. I’ve selected all of the collision layers. I’ve set the Z-index to a very high number. I’ve set it back down. I’ve got the collisionshape enabled.
Hey. just leaving this for future readers. I tried doing this using an area 2D and collision shape without much success.
What I would suggest is to add a Control Node, and define its rectangle in the wanted area.
Use the mouse_entered() signal directly from the control_node instead of the area2d.
I’ve had a similar issue and it was because the main node didn’t have the “Pickable” input turned on. Bear in mind that it is also possible for other nodes to take up the mouse event and not propagate it. Such as ColorRect for example. You need to also set its “Mouse” → “Filter” to “Ignore” so it doesn’t consume the event for you. By default it is on “Stop” which blocks it.
Attaching example screenshot for my ArrowTower building which on hover needs to do something and the “Input” → “Pickable” flag.