Add this line before the wait and see if it helps.
walk_percentage = cycle(walk_percentage, 0, 100);

PS: Welcome aboard.



"There is no fate but what WE make." - CEO Cyberdyne Systems Corp.
A8.30.5 Commercial