I have the below code snipped that loops over all nodes in group tileFrames. Per design, all my nodes in that group are instances of the same scene "TileFrame" and I have also declared that as class_name in the linked gdscript.
In the Editor it is now not auto-completing custom variables like mouse_hover (I guess because at that time the compiler does not know what classes to expect here which is fine). Can I somehow tell it what class this is or assign a class to it?
var frameTiles = get_tree().get_nodes_in_group("tileFrames")
if frameTiles.size() > 0:
for tile in frameTiles:
if tile.mouse_hover:
global_position = tile.global_position
state = State.DROPPED
Max