I want the gaf anim fellow ccNode's opacity change. i use this method, and cocos2dx support 'setCascadeOpacityEnabled ' method, I use it but nothing take effect.
here is a example:
XXXLayer.[GafObject1].[cc.Node].[GafObject2]
GafObject1 = gaf.GAFAsset:create("yyy.gaf"):createObjectAndRun(true)
GafObject2 = GafObject1 :getObjectByName("zzz")
XXXLayer:isCascadeOpacityEnabled true
GafObject1:isCascadeOpacityEnabled true
[cc.Node]:isCascadeOpacityEnabled false
GafObject2:isCascadeOpacityEnabled true
but i cant find where is this [cc.Node] node?
I try to use GafObject2:getParent() to find [cc.Node], but it's wrong.
how can i deal it? thx very much.
I want the gaf anim fellow ccNode's opacity change. i use this method, and cocos2dx support 'setCascadeOpacityEnabled ' method, I use it but nothing take effect.
here is a example:
XXXLayer.[GafObject1].[cc.Node].[GafObject2]
GafObject1 = gaf.GAFAsset:create("yyy.gaf"):createObjectAndRun(true)
GafObject2 = GafObject1 :getObjectByName("zzz")
XXXLayer:isCascadeOpacityEnabled true
GafObject1:isCascadeOpacityEnabled true
[cc.Node]:isCascadeOpacityEnabled false
GafObject2:isCascadeOpacityEnabled true
but i cant find where is this [cc.Node] node?
I try to use GafObject2:getParent() to find [cc.Node], but it's wrong.
how can i deal it? thx very much.