flsg -> RE: Flash help and tutorials, checked daily (3/8/2006 8:59:45)
|
quote:
ORIGINAL: somebody621 Also, flsg, wouldn't that code be for so that the ball doesn't go off the stage? Also, since 450x500 isn't always the movie dimensions, you might want to use stage.height and stage.width. OMG, didn't think of that...for the first time in my life lol[:(] anyway, I'm more confortable with tiles:
//declare an Array
var myMap1:Array=new Array()
myMap1=[[1,1,1,1,1]
[1,0,0,0,1]
[1,0,1,0,1]
[1,0,0,1,1,]
[1,1,0,1,1]
]
//put this function in _gloabal in case that we need to use it in a MC
_global.mapBuilder=function(the_map){
/*code here
make 2 loops, one for the height(i=the_map.lengh), other one for the width(j=the_map[0].lengh)
then attach tiles MC in the loop
*/
}
|
|
|
|