The Daily Click ::. Forums ::. Klik Coding Help ::. Probably really easy MMF question about RTS movement
 

Post Reply  Post Oekaki 
 

Posted By Message

Xiao



Registered
  29/01/2005
Points
  59
31st January, 2006 at 22:19:57 -

http://www.clickteam.com/CTforum/showthreaded.php3?Cat=&Board=upload&Number=200815&page=&view=&sb=&o=

I'm using this RTS movement engine, and I have a pretty simple request. I can't figure out how to make the guys stop before they overlap each other. I tryed making circles around each one and when the circles overlap, they stop, but that didn't work because they couldn't reach the mouse, they just stopped on the way to the target. So could you make it that when you select multiple units and move them to the same location, they don't overlap, and stop when they're close to each other (like grouping up)?

Thanks a lot!

And also, semi off-topic, does anyone have some overhead RTS sprites (not future or present, I mean like swords and stuff)? I couldn't find any.

 
n/a

Knudde (Shab)

Administrator
Crazy?

Registered
  31/01/2003
Points
  5125

Has Donated, Thank You!Clickzine StaffKlikCast StarVIP MemberGhostbuster!Dos Rules!I donated an open source project
31st January, 2006 at 22:23:14 -

In order for that circle detector thing to work, you'd have to create an ID tagging system in Fastloops, so that you can test each detector individually.

Search the articles with the word fastloop or fastloops

 
Craps, I'm an old man!

Xiao



Registered
  29/01/2005
Points
  59
31st January, 2006 at 22:25:08 -

No, the tagging each individually wasn't the problem, the problem was figuring out how to make them ONLY stop when they're close to the cursor instead of just top whenever they're close to each other.

 
n/a

Knudde (Shab)

Administrator
Crazy?

Registered
  31/01/2003
Points
  5125

Has Donated, Thank You!Clickzine StaffKlikCast StarVIP MemberGhostbuster!Dos Rules!I donated an open source project
31st January, 2006 at 22:32:24 -

Oh, I see your problem, troops can't move through each other, correct?

 
Craps, I'm an old man!

Xiao



Registered
  29/01/2005
Points
  59
31st January, 2006 at 22:33:39 -

Yeah. They need to stop far apart so that they don't overlap, but it needs to be at the target.

 
n/a

Knudde (Shab)

Administrator
Crazy?

Registered
  31/01/2003
Points
  5125

Has Donated, Thank You!Clickzine StaffKlikCast StarVIP MemberGhostbuster!Dos Rules!I donated an open source project
31st January, 2006 at 23:18:07 -

hmm, an interesting problem, I'll work on it tonight.

 
Craps, I'm an old man!

Xiao



Registered
  29/01/2005
Points
  59
2nd January, 2006 at 00:41:41 -

Thanks!

 
n/a

Xiao



Registered
  29/01/2005
Points
  59
2nd January, 2006 at 16:38:01 -

Bump

 
n/a

Xiao



Registered
  29/01/2005
Points
  59
2nd February, 2006 at 02:41:55 -

Sorry....bump...

 
n/a

-Vinny-



Registered
  12/01/2005
Points
  436
2nd February, 2006 at 04:58:39 -

just to clarify, do you mean formations?

 
Vinny

DaVince

This fool just HAD to have a custom rating

Registered
  04/09/2004
Points
  7998

Game of the Week WinnerClickzine StaffHas Donated, Thank You!Cardboard BoxDos Rules!
2nd February, 2006 at 07:26:35 -

2 bumps in two days? Have patience.

 
Old member (~2004-2007).

Silveraura

God's God

Registered
  08/08/2002
Points
  6747

Game of the Week WinnerKlikCast StarAlien In Training!VIP Member360 OwnerWii OwnerSonic SpeedThe Cake is a LieComputerChristmas Tree!
I am an April Fool
2nd February, 2006 at 22:09:00 -

Ok Shab, I've looked around & I still cant find anything about ID Tagging in FastLoop, it sounds useful for something I wanted to make but couldnt. I'ved checked Fastloop too & I still dont see anything about it.

 
http://www.facebook.com/truediamondgame

Noyb



Registered
  31/05/2004
Points
  1117

VIP Member
2nd February, 2006 at 22:51:46 -

Shiinobii: You can try asking this question on the official Clickteam forums( http://www.clickteam.com/CTforum/categories.php3 ), or seeing if it has already been answered there. If there is a maximum number of selectable units, you could hardcode a stopped formation, telling each unit to go to a specific place relative to the waypoint using whatever collision and pathfinding engine you use, but there's probably a much better way.

Brandon: Fastloop ID article: http://www.clickteam.info/kb/start/index.php?showtopic=43
The basic principle is to spread a value among the copies of the object that you want to individually check, then compare that alterable value to the loopstep in the loop to focus on an individual copy.

Image Edited by the Author.

 
"Omg. Where did they get the idea to not use army guys? Are they taking drugs?" --Tim Schafer on originality in videogames
   

Post Reply



 



Advertisement

Worth A Click