I'm trying to get my spaceship to fly left and down diagonally but I can't get it to reset to do the same loop again, any help would be cool.
$(document).ready(function() {
setTimeout("spaceship1()",400);
});
function spaceship1(){
$("#spaceship1").animate({
left:"-=800px",
top:"+=800px"
},2000).animate({
top:"-800px"
},0);
setTimeout("spaceship1()",2000);
}
}