The Daily Click ::. Forums ::. Klik Coding Help ::. RTS and/or Sports AI Help needed.
 

Post Reply  Post Oekaki 
 

Posted By Message

..:.Phox.:..



Registered
  18/02/2005
Points
  646

VIP MemberHero of TimeI like Aliens!Cardboard BoxAttention Getter
31st July, 2006 at 13:16:07 -

hellu everyyous

I've been trying for quite a LONG time now to create an solid and efective way to make behaviors, and orders, as well as player positioning, and formations.

I'll use the RTS example (knowing the sports one can be pretty mush like it. (formations "defence", "atack", "that special formation you created so the players go around the oponents".)


Ok.

Is there a solid and effective way to make formations?

For example: There are 10 Soldiers scatered around the frame. After you select them all and press 1, they form upin to lines of 5 independant of the direction they are moving in so it looks like this:

<a href="http://imageshack.us">Image

I think you get the idea.

(NOTE: when I ask if it's possible to make that 2X5 position, I'm also asking if it's possible to make any other position as well.)

 
Profile edited as it messed the layout of the site up.

..:.Phox.:..



Registered
  18/02/2005
Points
  646

VIP MemberHero of TimeI like Aliens!Cardboard BoxAttention Getter
31st July, 2006 at 20:46:08 -

noone?

 
Profile edited as it messed the layout of the site up.

Del Duio

Born in a Bowling Alley

Registered
  29/07/2005
Points
  1078

GOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!Evil klikerHasslevania 2!The OutlawSanta Boot
31st July, 2006 at 20:47:39 -

Maybe if you pick one player, like the captain or the quarterback, and set the other players around him for the formations. That would be what I would do. So if you pick "attack formation" or whichever, have the individual players start to move towards their new positions relative to the captain.

Very cheap ASC pictures:

x
x x
O x
x x
x

So by selecting the formation, you'd have one guy move to the top 'x', and so on.


 
--

"Del Duio has received 0 trophies. Click here to see them all."

"To be a true ninja you must first pick the most stealthy of our assorted combat suits. Might I suggest the bright neon orange?"

DXF Games, coming next: Hasslevania 2- This Space for Rent!

Ski

TDC is my stress ball

Registered
  13/03/2005
Points
  10130

GOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!KlikCast HelperVIP MemberWii OwnerStrawberryPicture Me This Round 28 Winner!PS3 OwnerI am an April Fool
Candy Cane
31st July, 2006 at 20:53:44 -

LOL ok this may sound totally stupid because im not a coder -_-

But how about invisible detectors that they return (which make the formations) to when the command is set?

K, Ill hide now _

 
n/a

..:.Phox.:..



Registered
  18/02/2005
Points
  646

VIP MemberHero of TimeI like Aliens!Cardboard BoxAttention Getter
1st August, 2006 at 00:48:27 -

I supose detectors would work, but I tryed some times and after the guy get's to his coresponding detector or waypoint he starts "vibrating" around the destination pixel.

How would you make that stop?

 
Profile edited as it messed the layout of the site up.

Liquixcat

Administrator
Lazy Coder

Registered
  08/12/2002
Points
  441234

VIP MemberLikes TDCKitty
1st August, 2006 at 00:53:50 -

You were using the bouncing ball movement weren't you? You'll have to make your own movement engine for that vibrating to stop.

 
thinking is like pong, it's easy, but you miss sometimes.

..:.Phox.:..



Registered
  18/02/2005
Points
  646

VIP MemberHero of TimeI like Aliens!Cardboard BoxAttention Getter
1st August, 2006 at 01:03:50 -

how is that?

 
Profile edited as it messed the layout of the site up.

Zethell

The Daily Douchebag

Registered
  15/04/2005
Points
  123

VIP Member
1st August, 2006 at 06:05:48 -

You don't HAVE to make ure own movements to make it stop..
I made it stop with bouncing ball myself.

Theres very often more than one way to solve something.
Ofcourse Custom movements are always nicer :]

 
TDC's Daily Douchebag, since 2005!

..:.Phox.:..



Registered
  18/02/2005
Points
  646

VIP MemberHero of TimeI like Aliens!Cardboard BoxAttention Getter
1st August, 2006 at 22:12:03 -

can someone help me out with it then?

 
Profile edited as it messed the layout of the site up.
   

Post Reply



 



Advertisement

Worth A Click