Step 2.Create a grid of lines covering the whole area of the stage and convert it to an MC. The grid is used to fill with a certain color the areas between the grids, which allows easy drawing of labirynth walls. Later you can just erase the lines, or put their alpha to 0. In order to make the walls convenient for collision detection, one should select separate sections constrained to rectangular shapes, or other wise colision detection wont work properly since some of the white (non-wall) areas will be considered as walls by the algorithm. These separate shapes should be converted to symbols, and Ive been naming all of the instances as part1, part2, part3, etc. so that I can loop through them easily by name reference.
|» Level Intermediate|
Rating: 5 Votes: 109
|Works as a Flash and Director designer/programmer and video editor at AdVenture Studios in Bulgaria.|
|Download the files used in this tutorial.|
|Download (38 kb)|
|More help? Search our boards for quick answers!|