有些UI界面会需要一个类似与对话框的东西,弹出对话框时,如何添加一个
由小到大的效果
实现:
function actionEndFunc() end dialogBg:setScale(1/100) local actionScale = CCScaleTo:create(0.3,1) local callfunc = CCCallFunc:create(actionEndFunc) local actionSequence = CCSequence:createWithTwoActions(actionScale,callfunc) dialogBg:runAction(actionSequence)原文链接:https://www.f2er.com/cocos2dx/343770.html