/** Creates a OrbitCamera action with radius,delta-radius,z,deltaZ,x,deltaX.
*
* @param t Duration in seconds.
* @param radius The start radius.
* @param deltaRadius The delta radius.
* @param angleZ The start angle in Z.
* @param deltaAngleZ The delta angle in Z.
* @param angleX The start angle in X.
* @param deltaAngleX The delta angle in X.
* @return An OrbitCamera.
*/
static OrbitCamera* create(float t,float radius,float deltaRadius,float angleZ,float deltaAngleZ,float angleX,float deltaAngleX);
--eg:
local scaleTo = cc.ScaleTo:create(0.5,0)
local spawn = cc.Spawn:create(orbitCamera,scaleTo)
local delay = cc.DelayTime:create(1)
--[[
local sequence = cc.Sequence:create(delay,spawn,cc.CallFunc:create(function()
layout:removeFromParent()
end))
layout:runAction(sequence)
]]
原文链接:https://www.f2er.com/cocos2dx/339532.html