When Godot tells you in base "null instance", it means the object on which you call the function is null. Here, object_colliding is null.
One reason could be that get_node("RayCast2D").get_collider() did not return any collider, which means there is no collision. So you should check for that case before checking the group of the collider.
if object_colliding != null && object_colliding.is_in_group("interractable_objects")
thanks i’ll try that
ROBOTOO007 | 2020-02-26 14:23
the game doesn’t crash anymore but it still doesn’t print out anything
ROBOTOO007 | 2020-02-26 14:32
New problem then.
According to your code, for the print to happen, you need all of the following conditions to succeed:
The collider must be detected (non-null)
The collider must be in the interractable_objects group
The button bound to the interract action must be pressed