当前位置:网站首页>cocos2dx_ Lua card flip

cocos2dx_ Lua card flip

2022-07-05 04:57:00 Meteor spot

    local fun = function(curNode, BgNode)
      local scaleToHide = cc.ScaleTo:create(0.1, 0, 1.0)
      
      local function funcScaleToShow()
        local scaleToShow = cc.ScaleTo:create(0.1, 1.0, 1.0)
        BgNode:setVisible(true)
        BgNode:runAction(scaleToShow)
      end

      local callFunc = cc.CallFunc:create(funcScaleToShow)
      local sequence  = cc.Sequence:create(scaleToHide, callFunc) 
      curNode:runAction(sequence)
    end

原网站

版权声明
本文为[Meteor spot]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202140625237642.html