tidalwv
12-12-2002, 12:33 AM
Howdy...
Anyway, I'm making a racing game in Flash 5, and the time has come (or so the Walrus said) to put in those pesky barriers that keep you from cutting the course.
My problem is that the barrier, and the point on the car that I want to test hitting the barrer, are in two entirely different movie clips.
I've tried sorting through localToGlobal(), but I haven't been able to get my head around it.
Here's a diagram on where things are:
_root
|------ plCar
| |------timing
|
|------ track
| |------barrier
I want to test the point timing hitting the unbounded region of barrier... therefore, with the 'true' argument in hitTest, testing the x and y coords of the timing object.
Any suggestions? :)
Anyway, I'm making a racing game in Flash 5, and the time has come (or so the Walrus said) to put in those pesky barriers that keep you from cutting the course.
My problem is that the barrier, and the point on the car that I want to test hitting the barrer, are in two entirely different movie clips.
I've tried sorting through localToGlobal(), but I haven't been able to get my head around it.
Here's a diagram on where things are:
_root
|------ plCar
| |------timing
|
|------ track
| |------barrier
I want to test the point timing hitting the unbounded region of barrier... therefore, with the 'true' argument in hitTest, testing the x and y coords of the timing object.
Any suggestions? :)