Truck game

Hi all,

For self-learning purposes, I’m making this truck game now which is somewhat similar to the one at

I’ve more or less done the controls for the truck (UP DOWN LEFT RIGHT keys), but I’m stumped at the ground part.

Yea I know I could use stuff like hitTest or if car._y > land._y, then car._y=land._y to prevent the car from going into the ground etc, but if you look at the .fla file attached, you will realise that it’s not so simple because of the wheels rotation etc etc. Getting really confusing, and I’m just experimenting with a flat ground at this point.

Can someone point me in the right direction? Is there a way to use some ‘path follow’ method?? Thanks in advance :ko: