Help with simple collision/hitTest
Hi there,
Im currently making a simple car game. I want to constrain my car within the boundaries of the track, but cannot find the right code for a simple collision detection / hit test that will stop the car from going outside the track object.
The track is made up of two layers - the top layer is purely for aesthetics and the underlying layer is basically a solid block which has had a track carved out of it using the eraser tool, then converted into a symbol with the name "groundMC".
The car is named "carMC" and has also been converted into a symbol and exported for action script 2.0
Does anyone know the correct code to keep the car inside the block (groundMC)?
Many thanks
