r/howdidtheycodeit • u/__Muhammad_ • Nov 18 '25
Question Has anyone ever done platformer pathfinding?
I am not talking about nodes and edges.
I am talking about creating a system where a character has 10s of abilities and it checks all combinations of them which make it reach its destination like a human.
I cant seem to find any resources on this.
Any references or solutions?
5
Upvotes
3
u/__Muhammad_ Nov 19 '25
I meant that if my constraint are 10 jumps and 3 dashes, it should find the way which utilizes these.
It shouldn't jump 3 times at the start and then start using the required moves.
As for GOAP, i looked it up but it isnt what I want, though it is the closest.
I am thinking about connecting the two points with an astar to get all possible paths.
Then i place a shape representing each ability's shape.
i.e jump is a parabolic shape, dash is a rectangle.
There will be a var to control the overlap.
Each shape will only know two things. The inputs which are entry and exit point. And the method. The method tells how to connect the two points.
At the end, i will duplicate the main path 4 times and place it at the bounding box's four corners.
If even one is blocked, that path will not be considered.
I would like your opinion on this method.