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