I'm trying to get an object to move itself around the window using a recursive method call. Everything works until I try and slow down the movement using a setTimeout.
The code looks something like this...
function myObject(){
this.blahblah;
this.move=move;
}
function move(){
this.blahblah;
setTimeout("this.move()",50);
}
without the timeout I get the movement but its too quick to really be an animation - if you know what I mean.
Bookmarks