An easier (but klunkier) method is just have the mech stiffen up and jump (springpads under the feet or jumpjets).
Not sure if you want to keep on this, but using German combat tripods (panzerkampfdreifuss) to fight giant fauna (dinosaurs) on an exotic planet was a side-idea of mine back when I was still into Frank Chadwick's Space 1889.