And I´m trying to make an arkanoid clon and have a some problems,
instead of 100 instances I only get 20, can anyone tell me where is the mistake.
I hope you can help me
First of all, you declare a new array with 10 elements. The elements are numbered starting from 0, not 1, as you had it. So they would go from [0] to [9] (that’s 10 total). So I fixed your ‘for’ loops to reflect this.
Second, you were duplicating the movieclips into layers that were already populated at times. For example, when i=0, and j=0, then you would have a clip in level0. Then, when i=0, and j=1, you would have a clip in level1. No problems so far. But when we get to i=1, and j=0, the level is level1 again, so the new clip replaces the old one at level1. So I basically took your i and j values, converted them to strings, concatenated the string, then converted the string to a number, so you’d get: 00, 01, 02…97, 98, 99 (that’s 100 levels and 100 clips).
Hope it works now. If you have any other questions just ask.
-Al