Hi guys, i am trying to attach some movie clips and i manage to attach them in random positions but i dont know how to place them all inside my maze, any help? i got the fla file for it.
Not 100% sure what you mean, but if you change your random placement line to:
for(i=0; i<5; i++) {
attachMovie(“rect”, “rect”+i, i);
_root[“rect”+level]._x = int(Math.random()*440+50);
_root[“rect”+level]._y = int(Math.random()*240+50);
level++;
}
They all stay in the maze
erm… i want them to stay in the maze and place only in the places where my ball can move, thats wat i mean. after i change to urs, they stay in the map but are inside the walls also.