RTS objects don't collide with eachother.

For questions about using Classic.

Post » Tue Jan 01, 2013 11:13 pm

Hey guys! I have 5 enemies which move towards player using RTS behavior. But they collide with eachother when they move towards their goal. How do I make so that they don't do that. How to make them avoid eachother? Thanks in advice!
B
11
S
3
G
6
Posts: 193
Reputation: 4,234

Post » Wed Jan 02, 2013 12:09 am

Can you post your cap file by hosting it with somewhere like DropBox?
"Construct 4 lets YOU make advanced games! (maybe)" Construct Classic - Examples Kit
B
86
S
28
G
13
Posts: 2,092
Reputation: 15,009

Post » Wed Jan 02, 2013 3:56 pm

Here you go!
https://dl.dropbox.com/u/26419994/game.cap
B
11
S
3
G
6
Posts: 193
Reputation: 4,234

Post » Wed Jan 02, 2013 5:35 pm

Ah I see, you might need to make a 50% smaller object attached to each enemy and set it to solid. To do this, create the sprite and put it in the "Container" of the enemies, then in events "Always" put the action "[collision sprite] set position to enemies".
"Construct 4 lets YOU make advanced games! (maybe)" Construct Classic - Examples Kit
B
86
S
28
G
13
Posts: 2,092
Reputation: 15,009

Post » Wed Jan 02, 2013 7:07 pm

Aha! I'll try that. Thanks.
B
11
S
3
G
6
Posts: 193
Reputation: 4,234

Post » Thu Jan 03, 2013 10:26 pm

It doesn;t really work :( Any other ideas or mb you can show me how to do that in .cap?
B
11
S
3
G
6
Posts: 193
Reputation: 4,234

Post » Fri Jan 04, 2013 2:52 am

+ System: Start of layout
-> enemy_: Avoid moving over enemy_
(RTS-> set object type to avoid)
Ta-da!:D
B
10
S
6
G
3
Posts: 127
Reputation: 2,481

Post » Sun Jan 06, 2013 4:38 pm

Oh man, oh man OH MAN I LOVE YOU!! :D Now my project is saved. :)
B
11
S
3
G
6
Posts: 193
Reputation: 4,234


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 2 guests