Game engine flight animations, controlled by contact with floor, not keys
This calls for States!

Basically, States let you setup completely different logic brick behaviours for walk and fly and transition between these conditions.


Click on the (+) icon on top of the controllers list to show the all the State slots. Notice how all the logic are on the 1st state right now. We'll change that. We'll assign all the walk logic to the 1st state, and all the flying one to the second.
Let's setup a detector to figure out when the robot is off the ground using a ray sensor, and have it transition to the 'Fly' state.

Finally, let's go to the 'Fly' state and setup the logic bricks so that it will transition back to the walk state.



The rest should be pretty straight forward.