Let me simplify

Code:

while(1)
{
If (in the air)
{
Variable += 0.1 * time_step
}
Else
{
variable = 0
}
wait(1)
}
move.z -variable



and i cant figure out how to make it fps indepenant