Internet Commerce

Partners & Affiliates














Developer Channel

internet.com


Tutorials Home What's New Top Rated Submit myTutes Random!

Search Tutorials


Tutorials Tutorials » Games

Categories Flash Labirynth
Author: Petar Svarc | Website: www.adventurestudios.net |

 
Page 2
«prev 1 2 3 4 5 next»

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.

«prev 1 2 3 4 5 next»

» Level Intermediate

Added: : 2002-10-01
Rating: 4.66 Votes: 107
Hits: 3569
» 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.
10 9 8 7 6 5 4 3 2 1
Read or Post Comments
 
   
 


The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers