In this tutorial I will explain you how to use “HitTest()” function in SwihMax. This function is not available in SwishMax but it is working if you test it in Player.
In this example I used an object (a car) which can be move from your keyboard. You will see that when you will hit the black area your object will bounce.
“HitTest()” function is like “isNearThis()” function but this can verify if an object is near a round object. “isNearThis()” function is verifying only if an object is near totality other object as being a square object.
I used a boundary which contains some shapes. “HitTest()” will verify if the object (the car) hit the shapes from the boundary.