draw() + CCLayerColor

draw() + CCLayerColor
0.0 0


I have a question, when we use draw() function, why CCLayerColor’s color does not work?
Can you please say me the solution?


I thought I was going crazy. I had the same issue. You have to completely comment out the draw function. You can’t just comment everything in the draw function.


Do you mean that your class is derived from CCLayerColor and you changed draw method? If yes then did you call draw method from base class in your overwriten draw method?

void YourLayerDerivedFromCCLayerColor::draw()
    // your code


When to use method draw in Layer?


yup calling the super draw works. thanks