I am working in an android game using cocos2d. I want to dim the background screen when I click the pause button.
How can I do this ?
|
|
I achieved this effect by using a specified pixel from a texture I was already using in this way:
Mind: this is Cocos2D for Objective-C, not for Android but translating it is straightforward |
|||||||
|
|
I would need a bit of code to give a more detailed answer, but you probably want to use glClearColor when you "click the pause button". |
|||
|
|