Label's opacity setting issue in CC2.0

Label's opacity setting issue in CC2.0
0

#1

Hello everyone:

Currently, I occurred an issue with label’s opacity setting.

e.g.
label.node.opacity = 0;

Then, I run the simulator, I saw the label totally…

Event if I changed the node’s opacity = 0 in the editor, and I can see the affect. But when I run the simulator, I also can see it. And I testing set sprite.node.opacity = 0, it work fine.

I searched around, and nobody occur the same issue…

Does someone can tell me the right way to change the label’s opacity.
Thanks.


#2

e.g.
label.node.opacity = 0;

Then, I run the simulator, I saw the label totally…

Event if I changed the node’s opacity = 0 in the editor, and I can see the affect. But when I run the simulator, I also can see it. And I testing set sprite.node.opacity = 0, it work fine.

Code is absolutely fine. It works fine with browser publish. I guess there is problem with simulator or i dont know if we are missing something to include for simulator. @jare if you could help on this for us.

Thanks


#3

It was fixed in v2.0.1. Which version are you using?


#4

There is something wrong with the simulator in CC 2.0.1. Try the following:

  • create a node and set it’s opacity to 128,
  • create a sub node with a label.

The label is half transparent in the editor, but if you run it in the simulator, it is fully opaque. If you run it in a browser, it’s OK. Try to set the opacity of the node to 0, the label should be invisible. It is visible in the simulator.

Furthermore, the edge of the system font look very strange in the simulator.


#5

I used v2.0.0. I’ll update the engine and test it again. Thanks