- Home /
Question by
tonyjoseph456 · May 14, 2019 at 07:33 AM ·
pathfindingmatrixpath-finding
Find a dynamic path from a start point to end point in a mxn matrix
Hi,
I have an mxn matrix in my 2dgame (in the image below, it's 16 rows and 11 columns), where I need to start from a random cell marked in red and need to end in a random cell marked in green. I need to create a dynamic path from the start point to end point which needs to be changed each time, I load the scene. Since I'm new to this, I don't know how to do this. If possible can someone help me how to do this? Thanks in advance
Comment