播放骨骼动画

   ccs.ArmatureDataManager:getInstance():addArmatureFileInfo("desk/donghuaname.ExportJson")
    local img= ccs.Armature:create("donghua01")
    img:addChild(self.m_Peng)
    img:setVisible(false)
    img:setScale(0.5)
    img:getAnimation():playWithIndex(donghua_index)

 

posted @ 2017-06-15 14:42  履霜坚冰  阅读(200)  评论(0编辑  收藏  举报