I have a board with cells(spaces), each of which is a node. When the mouse hovers over a cell, I want a variable to be assigned that node. As of now, the mouse can detect when it is hovering over an area, but that's it.
var space = get_world_2d().direct_space_state
var mousePos = get_global_mouse_position()
if space.intersect_point(mousePos, 1, , 2147483647, true, true):
cell = space.intersect_point(mousePos, 1, , 2147483647, true, true)
cell = null