Quantcast
Channel: Cocos中文社区 - 最新主题
Viewing all articles
Browse latest Browse all 88737

翻牌效果 调不出来正常的效果 求大神指点

$
0
0

@111396 写道:

local pokerFront = self:getChildByTag(1)
local pokerBack = self:getChildByTag(2)

local orbitTime = 0.3	
pokerFront:setVisible(false); 

local kInAngleZ      =  90 
local kInDeltaZ      =  -90  
local kOutAngleZ     =  0   
local kOutDeltaZ     =  -90  
local inAction = cc.Sequence:create(cc.DelayTime:create(orbitTime),
	cc.Show:create(),
	cc.OrbitCamera:create(orbitTime,1,0,kInAngleZ,kInDeltaZ,0,0)
	) 
local outAction = cc.Sequence:create(cc.OrbitCamera:create(orbitTime, 1, 0, kOutAngleZ, kOutDeltaZ, 0, 0),
	cc.Hide:create(),
	cc.DelayTime:create(orbitTime)
	)
pokerFront:runAction(inAction)
pokerBack:runAction(outAction)

帖子: 1

参与者: 1

阅读整个主题


Viewing all articles
Browse latest Browse all 88737

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>