Tutorials Home
What's New
Top Rated
Submit
myTutes
Random!
Flash Labirynth
Author: Petar Svarc
| Website: www.adventurestudios.net |
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 won’t 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 I’ve been naming all of the instances as “part1”, “part2”, “part3”, etc. so that I can loop through
them easily by name reference.
| » Level Intermediate |
|
|
Added: : 2002-10-01
Rating: 4.68 Votes: 110
Hits: 3573
|
| » Author |
|
Works as a Flash and Director designer/programmer and video editor at AdVenture Studios in Bulgaria.
|
| » Download |
|
Download the files used in this tutorial.
|
|
Download (38 kb)
|
|
Get conversion and unzipping tools
for PC and Mac here!
|
| » Forums |
|
More help? Search our boards for quick answers!
|
|
Please rate this tutorial, 10 is the top rating, you can also click the
comments link to read/write a review.
|
|
|