Track detector sytem

Wanting to make a tower defence game that allows you to create your own track for the enemys to walk on. It needs to detect if there is a possible track between the borders of the map and the tower where the enemys must reach. Any ideas?

I hope I understand your idea the right way. You could make transparent hitboxes near your enemy tower. Once clicked on one, your enemy will move towards the hitbox with a permanent force. This would require certain obstacles on its path that once the enemy comes near an obstacle movement would be triggered to the x or y axis of the enemy evading the obstacle and still being attracted towards the tower.

that sounds like a great idea, could you make a event so i would understand the sytem a lot more esaliy?

1 Like

I’ll try it out when i have some time :slight_smile:

1 Like

It would look something like this: