Hello.
I am trying to make an RTS game, but i am having some major issues with regards to targeting. I have tanks that consist of 2 sprites: A tank body and tank turret. Blue tanks are yours and red tanks are enemies (though for now red tanks do not function other than to be targeted, take damage if so and then be destroyed if its health reaches zero).
I need the blue tank to be able to auto target red tanks that are in range. But i also want to manually target an enemy by right clicking it. I need this manual target to override the auto target, but i am at wits end as to how to figure this out.
Another problem is that i want the selected target to switch to an animation called targeted (shows a targeting reticle over the tank) while the blue tank is selected (selected = true), the blue tank is targeting (targeting = true) and the red tank in question is targeted (targeted = true). This works fine on the blue tank's side, but not the red tank! All the enemy red tanks are switched to targeted instead of the specific one. How do i make it target the specific one?
I also require the projectile to ignore untargeted tanks, going through them to hit the targeted ones. Which is difficult when all of them get selected to targeted. I think I already have this down but I'm just putting it out there
Sorry bout the wall of text. If your answer is better than my targeting system feel free to suggest it. Also im using the free version of construct 2.