## Re: [Exult-general] Design: 'flocking'

 Re: [Exult-general] Design: 'flocking' From: Jeff Freedman - 2003-05-04 06:33:05 ```On Saturday 03 May 2003 09:26 pm, Amy Lear wrote: > It's really weird. If I can get it working through an emu or something = I > can take screenshots. That's okay. I'm really aiming for Ultima7's method, which seems to work= =20 really well. > Of interest, you could probably accomplish something like that with you= r > flocking stuff, just have them try to stand offset to whoever is 'next'= in > the formation. We've already got pathfinding. Exactly. There's just a lot of subtlety in getting them to follow into a= =20 confined space. It's starting to work reasonably. Just set = to=20 'yes' in the latest snapshot. ```

 [Exult-general] Design: 'flocking' From: Jeff Freedman - 2003-05-02 04:49:27 ```I think I've finally figured out the way the companions walk in formation= : =20 It's a 'flocking algorithm'. Each NPC uses the position and direction of= the=20 one in front of him, and also tries to avoid having an obstacle between. = =20 It's done really well in the original, and I'm starting to get it working= in=20 Exult. One funny bug left, is that sometimes it seems like an NPC is walking the= new=20 way and the old at the same time, so he skips and slides along. Got to=20 figure that out. ```
 Re: [Exult-general] Design: 'flocking' From: Amy Lear - 2003-05-03 06:24:48 ```On Thu, May 01, 2003 at 09:49:09PM -0700, Jeff Freedman wrote: > I think I've finally figured out the way the companions walk in formation: > It's a 'flocking algorithm'. Each NPC uses the position and direction of the > one in front of him, and also tries to avoid having an obstacle between. > It's done really well in the original, and I'm starting to get it working in > Exult. No, no, no. I want to see perfectly rigid formations like Ultima 6! That was the best! Everyone walking in a neat triangle, with the Avatar as the leading point! Or, uh, something. ```
 Re: [Exult-general] Design: 'flocking' From: Jeff Freedman - 2003-05-04 04:19:09 ```On Friday 02 May 2003 11:24 pm, Amy Lear wrote: > No, no, no. I want to see perfectly rigid formations like Ultima 6! Tha= t > was the best! Everyone walking in a neat triangle, with the Avatar as t= he > leading point! It's been so long since I played that. What happens when they have to fi= t=20 through a doorway? ```
 Re: [Exult-general] Design: 'flocking' From: Amy Lear - 2003-05-04 04:26:01 ```On Sat, May 03, 2003 at 09:19:04PM -0700, Jeff Freedman wrote: > It's been so long since I played that. What happens when they have to fit > through a doorway? They fold into a line behind the avatar. I was actually mostly joking about it, but if you want a description.. Well, it'd be easier with a 'picture'. Hope you have a monospace font. 6 2 1 5 3 4 That's the formation, with '1' being the avatar. When space constricted, or with any obstacle, they move towards the center row, with a bias of letting the 'higher number' character first. Meaning in a straight line, 2 would be in front of 3. It's really weird. If I can get it working through an emu or something I can take screenshots. Of interest, you could probably accomplish something like that with your flocking stuff, just have them try to stand offset to whoever is 'next' in the formation. We've already got pathfinding. ```
 Re: [Exult-general] Design: 'flocking' From: Jeff Freedman - 2003-05-04 06:33:05 ```On Saturday 03 May 2003 09:26 pm, Amy Lear wrote: > It's really weird. If I can get it working through an emu or something = I > can take screenshots. That's okay. I'm really aiming for Ultima7's method, which seems to work= =20 really well. > Of interest, you could probably accomplish something like that with you= r > flocking stuff, just have them try to stand offset to whoever is 'next'= in > the formation. We've already got pathfinding. Exactly. There's just a lot of subtlety in getting them to follow into a= =20 confined space. It's starting to work reasonably. Just set = to=20 'yes' in the latest snapshot. ```