Skip to content
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

[REQUEST]Update the tutorial to Godot 4 and use the AStarGrid2d class #2

Open
1 of 2 tasks
dukemagus opened this issue Mar 3, 2023 · 1 comment
Open
1 of 2 tasks

Comments

@dukemagus
Copy link

I'm submitting a...

  • Bug report.
  • Feature request.

Bug report

Feature request

Describe the problem you're trying to solve.

Godot 4 had some massive updates on its 2d feature set and API, and a powerful new class is AStarGrid2D, that is almost perfect for this kind of feature (grid based movement and pathfinding)

it will probably involve refactoring the entire pathfinder.gd script

@3d12
Copy link
Contributor

3d12 commented Apr 6, 2023

Hello!

I've made this update in my own fork. Since I was following this tutorial in Godot v4.0, I was able to research and make changes as I went along.

The finished implementation of Pathfinder.gd is quite a bit smaller when using AStarGrid2D, please check out my implementation and let me know if you have any suggestions for improvements!

https://github.com/3d12/godot-2d-tactical-rpg-movement/blob/update_to_godot_4.0/godot4/GameBoard/Pathfinder.gd

@3d12 3d12 mentioned this issue Apr 11, 2023
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants