If you read the tutorial (download it from the first post) I incorporate IanM's A* pathfinding library into the game.
Quote: "Also, if the path is long, buildings could be built in the way before the unit finishes the path. "
In the case of a dynamic map, as most RTS games are, you need to continue to search the path at least every time you reach a new grid location.
Quote: "Implementing groups and formation code "
This too is shown in the tutorial.
Quote: "how do get that group of units through that small opening without them all colliding "
If the pathfinding is implemented correctly, the units should automatically fall in line. I haven't actually bothered about unit collision yet, but I should have that in the updated release.
Quote: "if i print the movex# and movez# they dont seem to be the real world coordinates. Am i using the wrong varibles?"
you sure are, the coordinates you want are in targetX# and targetZ#.
Quote: "wer is the update. "
The tutorial update is still coming, but in the rewrite I messed something up with the pathfinding, so now its broken. (figures) Soon as I figure out what I missed the rest should be simple.
Would you guys prefer the tutorial was online instead of a Word document? I just finished redesigning my website and was considering turning all my tutorials into online resources.
"Using Unix is the computing equivalent of listening only to music by David Cassidy" - Rob Pike