First time poster, many times reader :ne:
I am trying to create a game similar to armor alley. I have a movieclip representing infantry “inf” and a button you press to deploy the infantry. I followed the movieclip duplication tutorial on this site and it helped, however i am not able to create multiple copies, i.e. 1. when i press the button it creates a clone 2. if i press it again, the clone goes back to its start position. The code looks like this:
deployInf = function() {
for (i=0; i<100; i++) {
_root.inf.duplicateMovieClip ("infantry"+i, i, {_x: Stage.height-44})
}
}
on (press) {
deployInf()
}
Any Help would be incredibly apreciated! Thanks