-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'Navigation Polygon 2D' ported to Godot 4.1.1 #955
Conversation
c36f96b
to
be77060
Compare
You have trailing whitespace (tabs) in your code. I recommend enabling the Trim Trailing Whitespace on Save editor setting to get rid of them automatically 🙂 |
If we rework and update the demo maybe we should save the NavigationPolygon resource to an external file as a binary .res file? Right now it is stored embedded as plain text inside the navigation.tscn file, something that we should not teach to new users as it will bloat their scene files and make them super slow to load/save/update on large and complex navigation meshes. |
be77060
to
9550166
Compare
@smix8
|
Click the "Make Unique" again and "Save As" then you can save it as a new .res binary file. |
9550166
to
69ce9eb
Compare
69ce9eb
to
b84283c
Compare
b84283c
to
fb780cd
Compare
@smix8 now only one script character.gd
Screen-2023-09-21-235414.mp4 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested locally on Godot 4.1.2, it works as expected.
Thanks!
I have combined the script from the documentation with the old solution (click event with red dot)
https://docs.godotengine.org/en/latest/tutorials/navigation/navigation_introduction_2d.html#setup-for-2d-scene
Screen-2023-09-21-005207.mp4
'NavigationPolygon' drawn again, it looked buggy.