Thanks smerf,
Some developers tend to search the Internet for specific path finding algorithms and slot it into their code.
I mostly like to try and work things out for my self with coding, as it gives me a little bit more control, knowledge of my code and sense of achievement etc.
Each character only works out the next tile. Not a whole route. I basically thought how do we humans navigate in the world. So each character just heads in the direction ( if Destination X is to the Left of Character then go Left ) of their destination and goes around the object if their next tile is occupied.
There is no sprite detection either. Just a 2D grid with a status update per tile.
Hope this is useful for anyone coding path finding.
Have a great day deving everyone.
Amazing creations start with a Fuzzy Vision
Dave - Creator, Developer and Visionary
Fuzzy Visions