now,i should use cc.OrbitCamera.create in my cocos2d-js or cocos2d-html project,but rhe class is not in the engine,it’s in c++ and lua , whta’s the way to use it ? thanks all!
Try this,
avathar3 = new cc.Sprite(res.Avtharred_1)
avathar3.attr({
x:t3.x,
y:t3.y,
scaleX:1.93,
scaleY:1.72
})
this.addChild(avathar3,9);
avathar3.runAction(cc.OrbitCamera(0,1, 0,0,20,-65,-25));
which version of cocos js do you use?