I am not sure if this is asking too much (if it is, sorry) but my question is this,
I have a 6*8 grid and i want to generate a simple random path which connects two corners of it (or any two grid-squares as start and finish points other than corners). Here is an exemple (red is the path):
And i also want to have control over this path's complexity, (more complex paths for further levels) like this exemple below:
I gave each grid (they're sprites) two instance variables as coordinates (like this [gridX=0, gridY=3] etc), and i am trying to change their frame (to red) but i am stuck at this point, i can't use these variables to select the right squares :/
Didn't upload the capx because there is nothing in it.
Thanks a lot in advance.