I'm working on my prototype from scratch and I'm looking for some tips to make things simple as possible (when possible of course).
So, I want to make the amount of Enemies on the stage even if they are not SEEN on the camera / Layout but spawned outside of the viewport (not out of the General Layout).
In other words, the enemies will spawn anywhere on the layout, not necessarily been seen yet while traveling around, and every X range of time they will keep spawn.
This is what I think:
Should I set a Global Variable: "MAX_Enemies" and whenever NEW Enemy spawned add 1 if it's smaller than the max?
I believe I should put the enemies in a Family to make things easier, but the general idea is the real question.
The reason I'm asking for the community opinion is to get better and learn how to be more efficient, so if there is a simple / easiest way to do the above please don't hesitate to share, explain, give example file or screenshots since it's easier for me to learn from a more visual way also it may help others in the future.
Thanks ahead! :)