Try the Orbit Camera code: cc.OrbitCamera(0,1, 0,0,20,-65,-25)
it will make a 3d view.
i am also doing a card game. i got that view
please check the test case
hi,i’m using cocos2d-js v3.14, and the cc.OrbitCamera or cc.orbitCamera couldn’t work!
sorry. i am using v3.13.1. please try like 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));
1 Like