I'm making a script so that I can have the ability to have all of my nodes to know if the mouse is hovering. The way I'm planning to do this is to have a script for the main node to be checking for a child node(I named it Cursor) that will follow the mouse throughout the game and that node will be entering into Area2Ds of other nodes to allow interactions for only for the nodes that are being hovered by the mouse.
The problem that I have is that for some weird reason the main node's code cannot find that "Cursor" node. The error is this:
Parser Error: Identifier not found: Mouse
I dunno what's wrong. Here's the code, btw:
var Click = Input.is_action_pressed("Interaction")
Mouse = get_node("Crusor")
Block = get_node("Block")
areaBlock = get_node("Block/Area2D")
if MouseHover() == true:
#this is where I'll put a command on send a Broadcast/Signal
#I dunno what it's called on Godot but it's a thing that sends a message to all of the nodes
#and once the nodes recieve the message will make them do stuff
#For example"if message 'Bla-Bla!' is recieved, do Bla-Bla"