Skip to content

Tag: ajax

setTimeout with ajax

I am stuck,I can’t use the setInterval function with ajax. this if a simplified version of what I want my code to do. As said in the code,I tried using setTimeout too but it didn’t work,javascript just ignores the funcion setInterval or setTimeout. Answer setInterval requires the first parameter t…

Bullets curving when player gets near

Is ther a way to make the bullets go in a straight line when the player gets near det bullet. Because when i move the player near the bullet the bullet curves. And if possible is ther a way that i can implement the particles code. I tried to remove the update function but that doesn’t seem to work. Do