How do I give enemys diffrent obstacle paths

Get help using Construct 2

Post » Wed Feb 25, 2015 11:02 am

Heey,

Im making a small top down shooter in construct. Now I had the problem that all the enemys took the same path towards the player. Even with solid on they all started to overlap eachother etc.

Now I came with an idea where I add hidden walls. Every enemy has a random value, Enemy with random value 1 cant walk trough hidden wall 1 etc. This way all enemy's take another path. But I cant get this system to work.

I managed to give all the enemy's a random number on creation. Now I try to give every enemy a diffrent obstacle map by doing:

Image

But this doesnt seem to do the trick.

So my question. How can I create an obstacle map which is diffrent for each enemy based on a number

Hope to hear from anyone soon!

Greetings,

Merijn
B
3
Posts: 1
Reputation: 177

Post » Wed Feb 25, 2015 12:31 pm

You cant, there is only one collision map and there are no workaround, its unfortunately just the the way it is designed in C2.
B
44
S
11
G
2
Posts: 1,181
Reputation: 6,801

Post » Thu Feb 26, 2015 11:30 pm

@skunheal nimos100 is right, I had the same issue once, and there is only one collision map which is used by all pathfinding objects.
For the overlapping issue though, you should check the RTS template that comes with Construct 2, it shows how to keep units in "formation" while they move. (Open Construct, go to File > New, and look for "Template : Real Time Strategy (RTS)")
B
11
S
3
G
3
Posts: 206
Reputation: 2,379


Return to How do I....?

Who is online

Users browsing this forum: oddreal, tarek2 and 4 guests