hi, i have created an object and i want the player to know they can interact with it, to do so, i want the cursor to change to a pointing hand once it enters the collision shape 2D.
so i have connected the _on_mouse_entered and _on_mouse_exited signals, and wrote this
however when i hover over the object with the mouse it doesn’t change, i have already confirmed that the object registers the mouse with a print so i have no idea why this doesn’t work
The default cursor shape only determines what the cursor looks like when you’re not pointing at a control node. A single Control node that covers the whole screen makes it useless by overriding the mouse cursor with its own (even if it’s rendered behind your collision shape).
However, setting the property mouse_filter on Control nodes to MOUSE_FILTER_IGNORE stops them from changing the mouse cursor
the problem is if i set the mouse filter to ignore, it can’t receive signals from the mouse anymore and the player has no way of selecting the items in the inventory (that is what the brown bar at the bottom is)
edit:
got it, i needed to change the way i handled the hud in the game, originally i used a canvas item, but i moved all the control nodes you can interact with the mouse directly as a child of player