Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | 12bits |
Everytime I try to use my RayCast2D I keep getting this error
Attempt to call function ‘is_colliding’ in base ‘null instance’ on a null instance
here’s my code
func smooth_move(delta):
# MOVEMENT
if $RayCast2D.is_colliding():
position = last_position
target_position = last_position
And here’s my scene
https://drive.google.com/drive/folders/1Fb5Jja5cdXaOxtMVDBdE2OLLf8IJYzbW?usp=sharing