Less than 160 lines of code. This utilizes the new "z" property that all movieClips have. It allows you to programatically control the depth of the object, but not like z-index in css. Flash CS4 gives a faux-3d environment to work with. The fact that there's not really a camera to "move around" as you would in a 3D editing suite, is rather annoying. However, it would have taken a lot longer to build this in Papervision.The process: I randomly create a new "wall" (the blue objects that you have to avoid) on a time interval. It then decides whether to create a red, green, or blue wall.
the following shows the effects of the colored walls when running into them:
- red = -10 health
- blue = -3 health
- green +10 health
Give it a try!
0 comments:
Post a Comment