Thanks man but it doesn't work.I think i can find the problem.Where i have writed the function animate,should be writed a variable,but i dont want to change variable X,i want to call function animate,so X can be changed,but that would be like animation.
Thanks