Closed earsmeardius closed 1 year ago
Please provide a link to that demo download cause the demo project name hints at this being an old pre Godot 3.5 version demo and not a demo made for Godot 4.0.
Especially the path.remove(0) part is very old pathfinding syntax. The newer 2D demo for Godot 4 uses the NavigationAgent2D.
Closing due to lack of response. Please comment if you can still reproduce this bug on the latest Godot version.
Which demo project is affected: 2D Navigation Demo 3.5-9e68af3 when using Godot 4.0.
OS/device including version: Windows 10 version 22H2
Issue description: In navigation.gd, lines 62, 75,
path.remove(0)
should bepath.remove_at(0)
In navigation.gd line 45,
NavigationServer2D.region_set_navpoly(region, navigation_poly)
should beNavigationServer2D.region_set_navigation_polygon(region, navigation_poly)
HTH.