Movement gravity

how would i make it so the player would have to keep moving to stay on the ground and while the player stays on the ground the player stores up energy to stay on the ground


add a fraction of world velocity to variable a deplete inverse proportional to velocity

i do not the know how to implement that?wish I did.