- Home /
i am making a targeting system but sometimes the system only targets some of the enemies.
i have designed a kingdom hearts like targeting system, where everytime you press Q it will enable the targeting system and if you press Tab it will toggle between the enemys (red cubes).
But whenever i locked onto an enemy it will sometimes either toggle between some of the enemies but not all or it would not toggle at all (sometimes it will work but sometimes it wont).
i would upload the code but it would be hard to explain, so ill upload the prototype.
https://drive.google.com/open?id=0B5SAYuErDsilZ2VFb2lRQVMyUG8
Controls: Movement: wasd Keys
Q: enable/disable Targeting
Tab: toggle between targets
the mouse moves the camera when it is not selecting anything
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
Problem with clicking to target enemies 1 Answer
How to make targeting code for a physics based projectile 2 Answers