VB.Net Pathfinding

eXact-Joe

Newcomer
Joined
Jul 11, 2003
Messages
2
I have a pathfinding module (Code) and am trying to make it more efficient.

If you would, can you take a look and see if I have done any thing in a stupid way? I mean I've only been with .Net for 8 months, and I'm not even in my last year of high school so the ods are my code is very poorly written.

Any help would be appreciated.

Thanks, Joe.
-------------------------------
The two most common elements in the universe are hydrogen and stupidity.
 
Last edited:
You probably should put the code in a class to make it easier to manage (and you can pathfind more than once simultaneously)

You shouldn't use Goto either. You could probably use a Do Loop instead.

BTW. You can paste code on the forum by putting in [ vb][/CODE] or [ cs][/CODE] tags
 
Classes for asyncronous calls... Psh (j/k). Its being done via multi-threading.

The "Goto" is not for looping purposes. Because of the "Remove At" call, the number of elements in the array list is lowered and if that "For/Next" loop continued it you go past the bounds of the array.

Reason I used the "No More Pasting" site is because I originally was discussing this in an ICR room and didn't want to flood - and itr was easier for me to post a link here then re-open project to copy the code.

Thanks though. Joe
--------------------------------------
010110010110111101110101
010000010111001001100101
010100110111010001110101011100000110100101100100
 
Back
Top