So I set up some nifty cool particles today with the help of Jacob! Anyway I have some when my player jumps and I am trying to implement a nice big splash when my player hits water!
I have it all working, the issue is, once the player has entered the water, the particles continue to splash from his feet. I know it is because he is colliding with the water, I was wondering what the best way to go about making the splash stop once he is in the water would be?
Here is all of the related code from my player.as class!
if (collide("water", x, y))
{
onWater == true;
if (onWater == true)
{
var b:int = 100;
while (b --)
emit.emit("dust", x + 22, y + 80);//emits the stars from the base of the player!
}
}
if (!collide("water", x, y))
{
onWater == false;
}