Page 1 of 1

stop your fleet from bumping into eachother

PostPosted: Sat Feb 18, 2006 10:57 am
by supaboy86
Hi, I can't find a way to keep my army men from bumping into eachother when they when they run to the spot that I previously clicked. I think it has something to do with distance but i'm not sure. Is there a possible solution?

PostPosted: Sat Feb 18, 2006 11:23 am
by Troodon
Try to make bigger distance between two soldiers.
If this is not working try to do something like this:
if the distance is smaller than something the soldier's x and y velocity is zero. This will make some soldiers to left behind. Then make a timer wich puts them again to move. I hope this will help.

PostPosted: Sat Feb 18, 2006 6:50 pm
by supaboy86
How exactly would I write the code for this? I tried this
Code: Select all
If (enemy1.x,enemy1.y,enemy1.x,enemy1.y<3)
then event actor stop for a while and such. But this code doesn't work because the all stop and then they all move. I their any way to have my unit move the way units move in warcraft 2 + 3? I already have the animations needed, just need this darn code. :?

PostPosted: Sun Feb 19, 2006 6:23 am
by Troodon
And If you do like in the old Age of empires:
1.First the troops can't collide on each other. (there is no physical response)
2.When they are in the mouse click point, they will have the physical response.

PostPosted: Thu Feb 23, 2006 9:34 am
by Troodon
Are your troops now working?