Hello! I am working on a Beta for a game similar to armor alley, the Beta is basically me proving to myself i could actually make a game, but i digress. There is a movieClip on the stage that is a button you press (movieClip, not a button though) to deploy new Infantry, refrenced as “inf”. Here is the following code on the button. Note onClipEnterframe ect is there, im not that dumb. Will it help to upload and .fla? Any help would be greatly apreciated! Thanks!
dupMovie = function () {
i = 0
newInf = _root.inf.duplicateMovieClip("infspanw"+i, i++); //probly bad code :(
newInf._x = Stage.width/1.3 //Just some point
i++;
if (i>25) {
i = 0
}
}
}
on (press) {
dupMovie();
}