Scirra / Construct-feature-requests

A place to submit feature requests and suggestions for Construct.
https://www.construct.net
11 stars 1 forks source link

Add Platformer Pathfinding Behavior. #240

Open IceFerretStudio opened 7 months ago

IceFerretStudio commented 7 months ago

Reviewed guidelines

Checked for duplicate suggestions

Summary

I have Tried to make A Platformer Pathfinder that works, but I often come into issues and No one seems to have figured it out.

Many users have interest in a feature like this.

Possible workarounds or alternatives

You can create nodes with the pathfinding behavior and follow them along using events with the platformer behavior. The way the pathfinding works could be breaking something in the events that I can't get it to work with multiple enemies and no one seems to have figured out a way to make a platformer pathfinder.

Proposed solution

Add a behavior "Platform Pathfinder" for use with 2d platformers.

Why is this idea important?

It is a ground breaking feature that would innovate the types of games everyone using construct can make.

Additional remarks

No response

Wackytoaster commented 7 months ago

I've tried many times to get something like that going but... man this is such a hard topic. I've never managed to get even a reasonable solution. I found an actually really good implementation in unity https://www.youtube.com/watch?v=EEc6s8R-E90

Best I came up with was to generate a map of nodes that I could pathfind through with A*, but then things got really complicated when I wanted to take into account different jump heights, speeds etc. Super though topic in my opinion. I'd love to see an implementation in Construct.

IceFerretStudio commented 6 months ago

The best solution I have so far is to make custom path obstacles using a Tilemap to get predictable paths. then use the Custom Trajectory Plugin to manage going between platforms. But it was such a pain and took very long to come up with a workable solution.