Return to Snippet

Revision: 63687
at May 30, 2013 20:01 by ramsesz


Initial Code
var cols:int = 2;
height:int = 20;
width:int = 40;

for (var i:int = 0;i<20;i++) {
     var clip:MovieClip = new MovieClip();
     clip.y = (Math.floor(counter/cols) * height);
     clip.x = (counter%cols * width);
}

Initial URL
http://www.ramsesz.be

Initial Description
This is a way to make grids in 2 lines of code

Initial Title
Grids in 2 lines of Code

Initial Tags

                                

Initial Language
ActionScript 3