What is it you are "trying" to do? This broken code makes no sense to me.
Why is the "enemy_distance += time_step;" in the "else" section? Because of this, and the "var enemy_distance = 2;", enemy_distance never get incremented, because the "else" never gets triggered.
"There is no fate but what WE make." - CEO Cyberdyne Systems Corp. A8.30.5 Commercial