RTS pathfinding bug?

For questions about using Classic.

Post » Thu Sep 30, 2010 5:45 pm

Im using the RTS movement to make an AI and for some reason it will not navigate around solid objects it just keeps running into them. I was just wondering if this is a common bug or if its just a problem I am having.
B
5
S
2
G
4
Posts: 632
Reputation: 2,829

Post » Thu Sep 30, 2010 7:45 pm

Are you using a waypoint, or move to position?
From what I remember waypoint acts more like bumpercars, and position uses pathfinding.
Its actually kind of useful to use waypoint when you have a ton of objects.... pathfinding really slows it down.
What you can do is have one unit as the pathfinder, then add a condition for the rest like distance(.pathfinder, .unit) > n add waypoint at .pathfinder... .unit that is
Image Image
B
161
S
48
G
90
Posts: 7,356
Reputation: 66,767


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 8 guests