Example of using 2D navigation using:
NavigationRegion2D
NavigationPolygon
NavigationAgent2D
Language: GDScript
Renderer: Compatibility
Check out this demo on the asset library: https://godotengine.org/asset-library/asset/2722