/** 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. */
@H_403_20@static OrbitCamera* create(@H_403_20@float t,@H_403_20@float radius,@H_403_20@float deltaRadius,@H_403_20@float angleZ,@H_403_20@float deltaAngleZ,@H_403_20@float angleX,@H_403_20@float deltaAngleX);
例如:
local orbitCamera = cc.OrbitCamera:create(0.5,1,0,90,-90,0)
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(@H_403_20@function()
layout:removeFromParent()
@H_403_20@end))
layout:runAction(sequence)
]]