Hey guys.
The pathfinding demo has a way to to mark all obstacle grid boxes. Is there a way I can mark the grid boxes that the actual path has marked?
Not sure I'm being clear enough.
This is what I mean.
Gridbased movement and pathfinding works best when disabling diagonals. You can try my example with and without diagonals. I did not search much for bugs and it may not be 100% optimized.
Unfortunately, I currently have no access to C2, so please use the free version of C3 to open the project: editor.construct.net The code should be compatible with C2.
1drv.ms/u/s!Ap_-qxoGKbDchAG-daHMFImSNay0
Edit: At the moment the C3 r111 has serious problems with OR conditions. You have to use a new version (beta) for everything to work.
Wow! This is exactly what I needed. You have my eternal thanks good sir. Hats off!
It was my pleasure. I learned something new myself when I tried to get it to work.
However, I noticed a bug in which too many GridMarks are deleted in some situations. Use the link from my first post again to get the modified project.
Develop games in your browser. Powerful, performant & highly capable.
Will do! Thanks again!