Why is *if is_on_wall() or $RayCast2D.is_colliding():* not working? I have a ray caster btw

thx 4 the help

Based on one of the errors, your script can’t find a node called “FloorChecker”.

The RayCast2D you are referencing in your floor_checker variable must have the same name after the dollar sign and in the scene tree, otherwise, your script cannot find it. If your RayCast2D is named “RayCast2D” in the scene tree then it must be referenced in code as $RayCast2D.

1 Like

Thx for the help

The red dot by your line 21 is a breakpoint, that tells the game to stop so you can debug. Click the red dot to remove it. As @Luova_Labs says you may also have a invalid FloorChecker, can you post a screenshot of your scene tree?