Small concept how to make the points that moving on the graph.
Points moving on graph
Points moving on graph
- Attachments
-
points-on-graph-2-02.love
- (5.88 KiB) Downloaded 46 times
Re: Points moving on graph
What are we looking at? Is it based on pathfinding between two points?

Re: Points moving on graph
Yes.
1. There is the graph - the diagram with nodes and edges. Each edge can have multiple points, so the edge can be curved and total length. Also the edges have just only one direction.
2. From nodes to nodes can be find the shortest path.
3. Points are moving along the paths.
Re: Points moving on graph
Nice. Did you use some common algorithm such as A*? Sorry, I didn't go through your code, just checked the demo.

Re: Points moving on graph
No, it's the Dijkstra's algorithm, but id can be changed to A*, if we add the distance to the end point as extra weight.
Re: Points moving on graph
your demos are super neat.
are you also working on some bigger project to use them?
are you also working on some bigger project to use them?
Re: Points moving on graph
Yes, I am makin the game, that needs alot of mechanics, one of them is path following along the graph structure.
https://www.youtube.com/watch?v=GbTO3S_-klM
Re: Points moving on graph
Nice, is that a transport-related game?darkfrei wrote: ↑Fri Apr 18, 2025 4:53 pmYes, I am makin the game, that needs alot of mechanics, one of them is path following along the graph structure.
https://www.youtube.com/watch?v=GbTO3S_-klM

Who is online
Users browsing this forum: Google [Bot] and 0 guests