Object auto evade another object

For questions about using Classic.

Post » Mon Dec 07, 2009 3:45 am

So like objectA would be going to waypointA and objectB would be going to waypointB. The problem is that they will be bumping each other because waypoint A and B are in a straight line. So how would I make it that both objects would like evade each other in some way that they wont literally bump into each other?
B
10
S
5
G
8
Posts: 203
Reputation: 4,395

Post » Mon Dec 07, 2009 3:56 am

this is way too vague a question, we need an example of the waypoint system your using, or some more information of what exactly ur doing right now and whats going wrong
B
52
S
7
G
6
Posts: 1,945
Reputation: 7,610

Post » Mon Dec 07, 2009 4:10 am

Well its nothing special. The main question is how to let the 2 objects evade each other but still go to their designated destination.

Like:
[WayPointA] [ObjectB] -----------> (X_X) <------------------[ObjectA] [WayPointB]

Here, two of those objects will bump to each other and will.... unendingly bump to each other cuz both of them is blocking one another.
B
10
S
5
G
8
Posts: 203
Reputation: 4,395

Post » Mon Dec 07, 2009 4:15 am

If your using the rts behavior, the simple answer is to use the action "select object to avoid".
Its not perfect, but if you set the cell size correctly it works fairly well.
Image Image
B
161
S
48
G
91
Posts: 7,359
Reputation: 67,273

Post » Mon Dec 07, 2009 7:00 am

Hmm I'll try that I guess. Thanks.
B
10
S
5
G
8
Posts: 203
Reputation: 4,395


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 5 guests