@d4v3y_5c0n3s said:
Sorry, that didn't fix it. The controls do work if I move the robot before it hits the ground, but once that happens it tips over with the same problems as before.
Strange. At least we know it's not a input problem!
I copy-pasted the code into the player from the Github demo project, everything works (minus the animations that are not in the demo project). This makes me think the problem might be how your player scene is set up, since the code should (in theory) not work with the demo project if the code is the problem.
I would try checking your player scene and seeing if there's anything missing/different in comparison to the Github version. Another thing to do is add print statements around key parts of the code, especially movement related code. Here are a few places I'd suggest add print statements to:
if found_floor:
airborne_time = 0.0
print ("floor found!")
else:
airborne_time += step#times how long spent airborne
if on_floor:
print ("on the floor")
#processes logic when character is on floor
"..."