Hey,
I just started to learn C2 and I really like it.
I started making my own game. The game is a sort towerdefence game. but i got stuck on a certain part:
The aiming of the towers.
I want the tower to aim the first enemy who comes in range of the tower, and fire towards that enemy until it is out of range, after that I want the tower to pick the closest enemy in range and fire until that enemy is out of range etc.
How do i do this?