in my second map 'plants vs zombies:
Zombies spawn - Zombies walk down their lane - You kill sombies by constructing towers and walls that will stop them from destroying your farm.
This is my first REAL project and everything have worked out fine... until now.
Problem:
I want my towers to only attack the zombies on their own lane.
At the moment, towers do attack closest zombie and dosen't care if it is on its own lane or not.
I can't solve this problem on my own, so i ask you for help. Do you have a tip or a solution?
This is the problem:
And this is what i need help with to accomplish my vision:
If you guys can help me i will give +rep and special thanks
ty.
Zombies spawn - Zombies walk down their lane - You kill sombies by constructing towers and walls that will stop them from destroying your farm.

This is my first REAL project and everything have worked out fine... until now.
Problem:
I want my towers to only attack the zombies on their own lane.

At the moment, towers do attack closest zombie and dosen't care if it is on its own lane or not.
I can't solve this problem on my own, so i ask you for help. Do you have a tip or a solution?
This is the problem:

And this is what i need help with to accomplish my vision:

If you guys can help me i will give +rep and special thanks
ty.