2D MAP PATH WAY WITH CURVES

I am trying to build a navigation system for a 2d game where the map tracks the current position of the player. For this, I will need to create a curve, waypoints, and junctions using the below pictorial example. I was asking if there is a possibility of having a plugin or a simpler tool to do this particular task. I have used certain path creators though they do not allow to form junctions.

Sample of what I’m trying to build. (There are 4 waypoints and 2 junctions)

You have two problems here.

Problem One is authoring a curved-line waypoint system. You can use a bezier spline or else do it as pre-baked series of points along a curve. There are free bezier spline packages on the asset store and on github, and pre-baked points are well, you just put them in the scene and connect them logically via a standard waypointing system.

Problem Two is pathfinding. AStar is the go-to algorithm for pathfinding through an arbitrary graph, although for your simple application above it might even be easier to just have “signpost”-style knowledge at each junction that an agent could use to choose their path.

Both of these things can and should be learned separately. There’s a million linear waypointing solutions and a million pathfinding tutorials out on Youtube. Regardless of their contexts the problem space is essentially going to be identical.

For the 1st problem, I was able to solve part of it. Though one of the challenges I encountered is actually branching a curve to actually create a junction. There is a reference to what I’m actually talking about.

I have tried the spline asset offered by Unity though it is only supported in Unity 3d.