So, its a tank simulation. User may press "Space" to fire missile from cannon. Okay that is fine. But what is a tank with only 1 cannon? This big guy has rocket launchers, machine guns, lasers, good stuff. the machine gun and lasers and cannon i know. But the rocket launcher system is slightly mind blocking me. I have the rocket programmed to fly up 30 yards, rotate, and blast towards the target. works great. Problem is selecting the target(s). I would like to have the set up to where when you press the "T" key, the rocket launcher throws a GUI, or some sort of visual sign/icon(Over anything in the way, hills, walls, w.e. is blocking the view from the player to the target, but showing over all possible targets in scene then can press "G" to tab through the targets, then press "Enter" to fire the rocket(Setting the rockets target to the selected target). I've been thinking for a few hours now on how to go about this but comming up with nothing.
Questions:
1. How to scan for every enemy tank in the scene.
2. How to tab between those targets.
3. (Most important) How to display a visual such as GUI, Icon, 2DTexture, Light, something like that, on the targets, making the currently selected have a different visual to show they are the current target.
Example image below.
Any advice?![][1]
Feel free to not laugh at my artistic paint ablity.
[1]: /storage/temp/24164-example.png
↧