Playing a sprite above a physics objects

Hi

I want to make a game like zombie derby.

In that game,zombies should walk on the mountains as the car moves.

To achieve this,I am thinking of adding  two wheels to the “zombie”  and hiding them.

Then when we applyTorque(),the zombie will move.

Is there am better way to walk the zombies on  curve shaped object?

The first problem I see is that your zombies would fall over on those steep hills. You’d also have to increase and decrease the torque as the zombies would be going up or down those slopes.

I would recommend looking into moving the zombies along curved paths. There are a few old tutorials on how to approach this:
https://coronalabs.com/blog/2014/01/07/tutorial-moving-objects-along-a-path/
https://coronalabs.com/blog/2014/09/09/tutorial-working-with-curved-paths/

This way, you would control the zombies movement completely and they’d move exactly as fast as you wanted.

Moving characters on slopes isn’t really as easy as it may seem. There’s a lot of tricks and hacks involved, and I don’t know if any game actually does it realistically. Each game just sort of has its own cheat to handling slopes.

The first problem I see is that your zombies would fall over on those steep hills. You’d also have to increase and decrease the torque as the zombies would be going up or down those slopes.

I would recommend looking into moving the zombies along curved paths. There are a few old tutorials on how to approach this:
https://coronalabs.com/blog/2014/01/07/tutorial-moving-objects-along-a-path/
https://coronalabs.com/blog/2014/09/09/tutorial-working-with-curved-paths/

This way, you would control the zombies movement completely and they’d move exactly as fast as you wanted.

Moving characters on slopes isn’t really as easy as it may seem. There’s a lot of tricks and hacks involved, and I don’t know if any game actually does it realistically. Each game just sort of has its own cheat to handling slopes.