cocos2d lua 上下翻牌

前端之家收集整理的这篇文章主要介绍了cocos2d lua 上下翻牌前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

/** 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 orbitCamera = cc.OrbitCamera:create(0.5,1,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(function()
layout:removeFromParent()
end))


layout:runAction(sequence)

]]

原文链接:https://www.f2er.com/cocos2dx/339532.html

猜你在找的Cocos2d-x相关文章