ccs.ArmatureDataManager:getInstance():addArmatureFileInfo("res/Hero/Hero.ExportJson")
local armature = ccs.Armature:create("Hero")
ly:addChild(armature,100)
-- armature:getAnimation():play("run")--通过名字获取动画
-- armature:getAnimation():setSpeedScale(2) --改变速度》1加速,《1减速
armature:setPosition(cc.p(480,320))
armature:getAnimation():playWithIndex(1,63.3) --按角标播放动画,效果同按名字
armature:getAnimation():gotoAndPause(5) --转到第几帧率暂停
骨骼动画
最新推荐文章于 2023-11-06 21:06:16 发布