Dynamically adding and removing multiple instances of same MCs after certain time.
Hey everyone,
After a little break in AS3 I'm back... and facing a problem. For a school project I'm trying to make a side scroller game in which the player automatically moves right and has to avoid branches.
Basically, depending on how well you do your speed (var) gets updated. After certain 'distance' (fake of course, as the player stays centered) I would like a n instance of Branch_MC to appear. Also, when that instance's x property reaches -20 I would like it removed.
I'd need approximately 135 branches so creating variables isn't really an option. I've been thinking about using arrays, but I'm unsure on how to use them to fit my needs.
As always, any and all help is much appreciated! =)
-Thanks in advance,
Patrick