Hi.
I’m working on a RTS game and for that I need a pathfinding-system, so I decided to create one. It will be free for everyone and works in pro as well as indie, in webplayer as well as stand-alone.
It was built in javascript so no plug-in is needed.
And here it is: Tell me if you liked it.
I tried it with Firefox 3 and Safari and I can’t figure out how it’s supposed to work. I CTRL click with the mouse and a box is drawn on the screen, but the characters don’t move. How’s this supposed to work?
To give commands, it is necessary to choose the soldier. Choose him by the rectangle. Then all will work well.
Firefox falls when you choose a building instead of the soldier and give it the order to move. The building cannot move. Here the script error is hidden. It is necessary to do check who is chosen.
But it is very interesting work and I would like to know as strongly it loads the processor. Whether some preliminary preparation of level is necessary?
BTW, Thank a lot. I’ll be waiting for your release. 8)
Works pretty good once I figured out how to use it. The AI seems to be able to figure it’s way around pretty well and it’s nice you can change the path on the fly.
I’d suggest a different approach to setting the way points though. As a player, I think I’d prefer the ability to select the soldier, then select the point on the map with a second left mouse click.
To me that seems like the more natural way of doing it for ease of use. You could then deselect the soldier by using the right mouse button rather than having to use a keyboard.
Total War uses that kind of set up and IMO it’s much easier because at that point you can just play with the mouse and have no need to use the keyboard while moving troops around.
@crockett
How would you drag-select a new group if left-clicking is used for moving AND selecting? Anyway, this control scheme is Blizzard-tested for about a decade and I personally like it just the way it is. Also, not sure what deselecting would be useful for. Just select the next thing you care about. Just sayin’. On the other hand, the specifics of the game should dictate the controls in the end.
@BigKahuna
It’s easier just to right-click to move rather than press control (if you’ve got a mouse, of course.)
@Nathan
The reason you can’t select the other guy is because he’s the enemy.
Also, don’t miss making more units at the house on the right.
Someone asked about the frame rate. I’d guess the frame rate is poor because the terrain and models are pretty complex for this type of game (especially on an average computer.)
Whoa!!! Sweet! I thought this was just a simple pathfinding demo… wow, you can take the enemy down, create new units, select multiple units via left click and drag, and you can shift-click too.
You’ve really put a lot of work into this so far… really great job, keep up the great work!!!
Very nice, thank you so much for making this public. I am new to Unity and 3D programming in general but I was able to understand what is happening very quickly. Awesome community + awesome engine, why oh WHY did I mess around with other engines before coming here?!
only problem on latest version of Firefox after going full screen then pressing esc the three circles (red, yellow, green) on the left disappear with the bar and window is cut in half unity bug or web player bug?