stop your fleet from bumping into eachother

Talk about making games.

stop your fleet from bumping into eachother

Postby supaboy86 » Sat Feb 18, 2006 10:57 am

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?
supaboy86
 
Posts: 11
Joined: Fri Jan 14, 2005 2:43 am
Score: 0 Give a positive score

Postby Troodon » Sat Feb 18, 2006 11:23 am

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.
I can't die, I already tried
~on the forums since GE 1.3.3~
User avatar
Troodon
 
Posts: 1539
Joined: Thu Jan 12, 2006 3:29 pm
Location: HELL
Score: 56 Give a positive score

Postby supaboy86 » Sat Feb 18, 2006 6:50 pm

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. :?
supaboy86
 
Posts: 11
Joined: Fri Jan 14, 2005 2:43 am
Score: 0 Give a positive score

Postby Troodon » Sun Feb 19, 2006 6:23 am

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.
I can't die, I already tried
~on the forums since GE 1.3.3~
User avatar
Troodon
 
Posts: 1539
Joined: Thu Jan 12, 2006 3:29 pm
Location: HELL
Score: 56 Give a positive score

Postby Troodon » Thu Feb 23, 2006 9:34 am

Are your troops now working?
I can't die, I already tried
~on the forums since GE 1.3.3~
User avatar
Troodon
 
Posts: 1539
Joined: Thu Jan 12, 2006 3:29 pm
Location: HELL
Score: 56 Give a positive score


Return to Game Development

Who is online

Users browsing this forum: No registered users and 1 guest