Pathfinding - Obstacles ?

Get help using Construct 2

Post » Fri Sep 01, 2017 9:01 pm

Hi.
I have a top-down game project that I am working on.
The player that I am controlling has the 8dir and solid behavior and the enemies have the pathfinding behavior.
Every few seconds enemies are spawned in the map and they all following the player.
The issue is that the enemies are overlapping each other and I don't want that.
I've used an action called "add obstacle" but it doesn't work, maybe I am not using it correctly.
Anyone has any idea ? A simple way if there is ... thanks .
B
47
S
11
G
10
Posts: 237
Reputation: 7,902

Post » Sun Sep 03, 2017 7:37 pm

If I'm not mistaken, the pathfinding RTS example comes included with a means to keep objects from overlapping.
B
82
S
48
G
32
Posts: 468
Reputation: 23,663

Post » Sun Sep 03, 2017 9:57 pm

I have no rts capx in the examples folder
B
47
S
11
G
10
Posts: 237
Reputation: 7,902

Post » Sun Sep 03, 2017 11:39 pm

Make a new project and load the template: Real Time Strategy. There's no reason it should be missing.
B
82
S
48
G
32
Posts: 468
Reputation: 23,663

Post » Mon Sep 04, 2017 8:17 am

I opened the "Browse examples" folder and is not there. If I start a new project I can find it this way. I played a bit and the tanks are overlapping each other, I looked in the event sheet and there is no events for not overlapping .
B
47
S
11
G
10
Posts: 237
Reputation: 7,902


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 2 guests