Hi everyone ! I would like to make an enemy "Move To" target or "Find" target with Raycast2D, and when that Raycast2D of enemy collides obtructs, enemy will find another ways automatically. PLEASE HELP ! Thank you so much !
Raycast isn't a very good way to find a target. Maybe this tutorial would help get you started, or you will probably need to find a tutorial on youtube that is close to what you are looking for.
Thank you so much, bro ! Maybe I have to use an other way.
Another thing you might want to look at is navigation 2d. https://docs.godotengine.org/en/stable/classes/class_navigation2d.html
There is a new tutorial on raycasting also: