I’m creating a game and the codes got most of the functionality I need, so know Im thinking about optimising.
Every enemy/platform/arrow has its own enterFrame function.
Now, I currently have it so these enterFrame functions dont work when you cant see the object.
But would it be better to have one enterFrame, and just have all the functions in that? But to do this I would need a whole bunch of loops to loop through enemies/arrows etc.
Which is faster? Lots of enterFrame or a bunch of for loops?