JakeMN
February 1, 2016, 5:50pm
1
In the defintion of Color4F here; Link
I see
//create a red color
var redColor = new cc.Color4F(1,0,0,1);
however when I copy that code verbatim into my code, I get the following error
JS: C:/Online/Cocos/CocosProjects/Cocos_Test_1/frameworks/runtime-src/proj.win32/../../..//src/app.js:128:TypeError: cc.Color4F is not a constructor
I am very confused.
Yes, I see that too.
var redColor3 = new cc.Color3B(1,0,0);
works.
JakeMN
February 1, 2016, 6:17pm
3
Copied yours in place and still get
JS: Cocos2d-JS v3.10
JS: C:/Online/Cocos/CocosProjects/Cocos_Test_1/frameworks/runtime-src/proj.win32/../../..//src/app.js:128:TypeError: cc.Color3B is not a constructor
JakeMN
February 1, 2016, 7:08pm
4
the following seems to work. Thanks
var redColor3 = new cc.Color(1, 0, 0, 1);