iTween: Making light work of 50+ MoveTos?

Hi
In my game I have a bunch (i.e. on average about 40) enemies running into the scene to a defined formation. I’ve used iTween to direct them each to a predefined position. The problem is, I’m no coder, and I’ve gone ‘long hand on this’, having ended up with 50 lines of code just to get the formation into position (they’re children of a main controller parent).

Is there a more efficient way of doing this? Thanks for any advice.

If you can put the offsets for the formation positions into an array (or you can make a function that calculates the offset) you can loop through all the things in the formation rather than doing them all individually.

iTween is also slow so that doesn’t help much on larger quantities.

Hmmm… okay i’ll research this, thanks.

I didn’t realise this >< :frowning: