I’m using Cocos Creator (v1.4) and I’m looking at the documentation for it.
Let’s take implementing the rotateBy action for example. I assume this is the most up to date documentation: http://www.cocos2d-x.org/docs/api-ref/creator/v1.4/modules/cc.html#method_rotateBy
When I try the following code, it doesn’t work.
var actionBy = cc.rotateBy(2, 360); this.node.runAction(actionBy);
Then I look at this: http://cocos.sonarlearning.co.uk/docs/actions and try the following:
var actionBy = new cc.rotateBy(2, 360); this.node.runAction(actionBy);
This works. But which documentation if the up-to-date one that I should follow? Sonar Learning or the Cocos Creator API Reference?