XML动画Armature

来源:互联网 发布:转播权包括网络转播吗 编辑:程序博客网 时间:2024/06/05 13:28
ccs.ArmatureDataManager : getInstance() : addArmatureFileInfo(appPath .. "xiaochou01.png",appPath .. "xiaochou01.plist", appPath .. "xiaochou01.xml")
local armature = ccs.Armature : create("xiaochoudonghua")
armature : getAnimation() : playWithIndex(0)
armature : setAnchorPoint(cc.p(0.5, 0.5))
armature : setPosition(170, 200)
armature : getAnimation() : setSpeedScale(20 / 80)
armature : setScale(0.8)
layer : addChild(armature) 
原创粉丝点击