dim3 Forum

Full Version: RTS movement
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
First I should say that I had planned to make a futuristic dogfighting simulation, but decided to put it on hold until I finsished a smaller project called "Move Out, Grandma!" This will be a game about moving a grandma out of her house and into yours, and it will be RTS style, with the grandma going around driving everybody's Stress Meter up. Anyway, I was wondering if there was any way to the "click-here" movement, rather than the "hold down the arrow keys" style.
Short answer:
No.

Long answer:
Not yet.
You could fake it by having it create an object where you click (probably through a projectile that marks the location then deleting the other marker)and having the player as a bot that moves to the marked location
hope it helpsSmile
SmileSmileSmile
You could do it like it is done in Goblin Commander (a console RTS) where the cursor is actually an object that you can move around with the control stick. That could work.
But they need to be able to move around obstacles, maybe I am misunderstanding, but it would seem like both thos approaches would only allow movement in a straight line.
You could use nodes to do that.
Something like:
1. Receive an order
2. Find the nearest node
3. Find the node that is closest to the destination point
4. Walk from where you are to the first one, and from there to the second one
5. From the second node move to the destination point
Reference URL's