How do I create an adoptable path?

Get help using Construct 2

Post » Tue Sep 10, 2013 9:29 am

Im trying to make an ant game.

http://www.dualproject.it/test/ant/

In the example you can click on the red ant (red can dig) and make a path.
when the red ant had finished the path, the blue ant had to use only that course to move. In the example i use that system.

1) red ant selected and click on a map, the red ant will move and place wall on the side and also place hole sprite behind.

2) when the red ant stop move, spawn wall in front.

3) the blue ant is selected (check that the red ant is not moving), on click on the map (only the click on the hole sprite are allowed), blue ant calculate path and the only path possible will be the before created path.

my question: there are a better way? without wall at the side of the red ant?
B
2
Posts: 2
Reputation: 154

Post » Tue Sep 10, 2013 12:39 pm

Ok, now I see.

You can try to remove the obstacles for the blue ant where the red ant walked ahead, instead of adding new objects.

So this also fixes the problem blue cant walk while red does.

Hope this helps.xeed2013-09-10 13:00:20
B
15
S
3
G
5
Posts: 396
Reputation: 4,977

Post » Wed Sep 11, 2013 11:24 am

oky but i dont understand how :P
I'll had to place obstacle everywhere, for ex a grid of solid sprites and destroy on collision with red ant? this would not be more heavy for the system?
B
2
Posts: 2
Reputation: 154

Post » Wed Sep 11, 2013 11:37 am

i guess not, since you dont need to add walls etc anymore.
B
15
S
3
G
5
Posts: 396
Reputation: 4,977


Return to How do I....?

Who is online

Users browsing this forum: Hassan Hackmi and 7 guests