Thanks, but that's not quite what I mean.
In essence that's the easy part, and will have the car driving around on a flat surface.
The difficulty comes when it goes up and down a ramp, or over a bump.
The player has rotational animations for flat (as above), incline 10 degrees, incline 20 degrees, incline 30 degrees etc. etc.
So when it goes onto a ramp it switches to the incline animation.
The Pico-8 example above does this very well, and even in the jump the car arcs.
This is where it's getting tricky for me.
I guess anim1 would be lat ground rotation, anim would be 10 degree incline etc. so when the sprite rolls over a ramp it switches animation.