0

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?

AndroidLearner
  • 4,500
  • 4
  • 31
  • 62
RaphBlanchet
  • 575
  • 6
  • 23

1 Answers1

0

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!

RaphBlanchet
  • 575
  • 6
  • 23
  • o rly? one of my particle textures is grey, and color changes work fine. – Kreiri Jan 19 '13 at 09:42
  • Yeah well, I should have said that it works in a greyscale too, but you won't get the exact same color as the rgb values. (i.e If you go in Photoshop and enter the RGB value {212,0,0}, you'll get a lighter red than you would in your game) – RaphBlanchet Jan 19 '13 at 16:16