Hey guys how do i stop i script when a sprite hides? Okay here's what i'm doing. I am making a shooting game. I made this sprite shoot every 3 seconds and when it gets hit by another sprite, it hides. But the problem is, the bullet wont stop shooting, how can i fix this?
Offline
just make a variable say hit then add that when the enemy bullet hits the varible is changed now in the shooting script enter another if else in the start
if ( hit = true)
{stop script
}
else
{the shoot proggramming here
}
u could also add the function of health instead of hit
Offline