Lab 4: Hit Test and Collision Detection (October 9th, 2006)
In this lab, you will be adding to the code we've gone over in class. Start from the existing code for Hit Test Solution 3.
See the code page for the FLA.
Create an array of obstacles (like the black box in Hit Test Solution 3). Make at least 10 obstacles.
Make it so that the red guy bumps up against each obstacle in the array.
Get rid of the red guy. Make it so that the user can click one of the obstacles to make it active.
When a block becomes active, the user may then move that block around the screen, but it still reacts
to its other obstacles. Something like this:
[ First click inside the rectangle, then press the left, right, up and down arrow keys ]
When you are done, post both FLAs and SWFs to your website.