Is it worth it to have a script that will control all enemies in the scene at once, as opposed to them each having their own script. If it matters in my current game there will be about 7-12 enemies on screen at once, and the logic controlling them is nothing incredible, but enough to make me consider making them all run off one script.
The only way to be sure is to try it and measure the difference.
The only way to know for sure is to test it yourself. Write it both ways and see what’s faster.
But also, it’s incredibly unlikely to make any noticeable difference. If you were doing to have hundreds of AIs then it might, but with a dozen or less you’re going to be cool any which way as long as you avoid doing stupidly expensive things in your logic.
@wccrawford: Snap! Haha.
Any difference would be negligible depending on how optimized your code is, if what you have now works then you should keep to it. Rather than waste more time with trying another method.
Only reason I would suggest doing the other is if your current method does not suit your performance requirements.