I am new to Cocos platform and I finding it very difficult to adapt with the “API”!!
I found that it’s not organised properly. I am trying to learn with the tutorial on the Cocos 2d-x site where a function cc.random0To1() and cc.randomMinus1To1() are used which I couldn’t find in the documentation!!!
Please help me with the above functions and the my program cocos creator 1.3.2 doesn’t recognize these functions.
Ohh. I was looking in the Cocos Creator API. Now I realized that Cocos Creator has inbuilt Cocos2d-js and I can even use that API. But I need to figure out why Cocos Creator was not able to compile the code… Thanks by the way. Could you suggest any way to get the whole documentation offline?
Could you help me out? I can’t find the above-mentioned function by typing in the search bar in the API link.
I can find the function with your link but for searching it directly at API section by going to the link provided in cocos2d-x site I can’t find this function. Thanks in advance!!!