javascript Programming Glossary: takestep
Calling setTimeout function within a loop http://stackoverflow.com/questions/5986588/calling-settimeout-function-within-a-loop i nextAnt.count 0 nextAnt.member i setTimeout function takeStep nextAnt mouseclickX mouseclickY 10 0 function takeStep ant destX.. takeStep nextAnt mouseclickX mouseclickY 10 0 function takeStep ant destX destY stepDistance . . . . . . . . if condition return.. stepDistance . . . . . . . . if condition return else takeStep ant destX destY stepDistance I have seen other posts that describe..
|