Hi all, new to Godot, and game programming.
Currently creating a 2D sidescroller with some friends, and I am working on enemy pathfinding.
I was wonder, what is an ideal way to go about implementing pathfinding in a side scroller for ground units? I've done reasearch and found 2 options I am thinking about using:
RayCast will be used for both
- Bread-crumb approach
- Navigation mesh with agent
What I like about the bread-crumb approach is I don't need to create navigation mesh's everywhere.
Since enemies don't need to move around obstacles, but up and down, I found the idea of a navigation mesh to be overkill, however, perhaps I don't understand the full extent and capabilities of it.
I also need to get the enemy to attempt jumping when it encounters an obstacle. This can be done with both approaches I am assuming.
But I wanted to see what others have come up with with creating enemy pathfinding in a 2D side scroller where height needs to be considered vs a top-down, as I am new to game development in its entirely, and would love to see other solutions, and ideas
If you have any resources, I would be grateful if you sent them my way!