Question

So after messing around with my game, there's a thing that I wanted to share with you that I discovered about CCParticle.

  • How do I change the color of the particles in a CCParticleSystem?

  • When I was on cocos 1.x, I could change it with startColor, endColor, but in 2.0, whenever I do it, it stays black. Why?

Was it helpful?

Solution

A:In Cocos2D 2.0, it stays the same, but unlike in 1.x, you must first make sure that the particle texture is white, because otherwise it will not blend with the color you want! Make sure too that the texture is correctly added, because if not, it will show big black pixels and that's probably not the result you want!

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top