Overlooking the following code for collision detection in Adobe Flash, I'm confused as to the function of line trace("shape hit " + i++);. What does the function trace do, as well? I'm very new to collision detection and only have the basics down.
Thanks everybody, I rely on you all for my problems. lol
Trace outputs what ever you tell it to, but The output is only shown at compile time. Basicly it's a debugging tool. Also an easyer way of hittesting is just If(shape1.hitTest(shape2)) { the way that script is working it will hitTest shape2 as if it were 5 pixels to the right and 7 down. And why are you posting here instead of an actionscript forum?