Welcome, Guest
Want to take part in these discussions? Sign in if you have an account, or apply for one below
-
- CommentAuthorsteve
- CommentTimeJan 28th 2010
Hi Richard,
I am currently playing around with your particle system and find it a great tool to use.
I have looked at the explosion demo and I have tried to age the particles once they have exploded.
When I add Age to the action and then run the application the image just disappears.
I have also added Fade and Lifetime into the equation.
The application run when I comment out Age.
I have also changed the 2nd parameter in addExistingParticles to true while going through the discussion forum to see if anyone is doing the same thing, and it still doesn't work.
What am I doing wrong here?
Thanks in advance for any help provided -
- CommentAuthorRichard
- CommentTimeFeb 9th 2010
If you add the Age action at the start, the image will start to fade immediately. If you don't want it to age until after the explosion, you need to add the Age action when the explosion occurs, which in the example means when the explode method runs. This is also where the Explosion action is added. -
- CommentAuthorjmp909
- CommentTimeMay 13th 2010
i don't think Fade works with bitmap particles
from the Fade update function:
particle.color = ( particle.color & 0xFFFFFF ) | ( Math.round( alpha * 255 ) << 24 );
I don't think that's going to affect a bitmap's alpha
j -
- CommentAuthorRichard
- CommentTimeMay 17th 2010
Fade does work with bitmap renderers. The color, including alpha, is used when drawing the particle onto the bitmap canvas.
1 to 4 of 4
