Hi! I'm having problems when trying to use Raycast2D inside a Node2D. If I put the Raycast2D directly as a child of my KinematicBody2D do this:
, it works fine. But if I put the Raycast2d inside a Node2D as in KinematicBody2D => Node2d => Raycast2D, and do:
for raycast in Node2d.get_children():
, then it doesn't work anymore. Also, while using this code sometimes I get an error message saying nonexistent function 'get_children' in base 'Node2D', but not consitently.
Am I missing something here?
Thanks in advance!