骨骼动画
来源:互联网 发布:手机改一寸照片软件 编辑:程序博客网 时间:2024/04/30 03:36
local manager = ccs.ArmatureDataManager:getInstance()
--manager:removeArmatureFileInfo("bear.ExportJson")
manager:addArmatureFileInfo("NewAnimation/NewAnimation.ExportJson")
print(manager)
local armature = ccs.Armature:create("NewAnimation")
print(armature)
armature:getAnimation():playWithIndex(0)
armature:getAnimation():setSpeedScale(1.2)
armature:setPosition(cc.p(display.cx, display.cy))
self:addChild(armature)
--添加plist骨骼动画
local plist = cc.ParticleSystemQuad:create("SmallSun.plist")
print(plist)
local bone = ccs.Bone:create("plist")
print(bone)
bone:addDisplay(plist, 0) --添加表现形式
bone:changeDisplayWithIndex(0,true) --切换变现形式
bone:setIgnoreMovementBoneData(true) --新增bone没有这个会被隐藏
bone:setLocalZOrder(100)
bone:setScale(0.5)
armature:addBone(bone, "zuo")
--manager:removeArmatureFileInfo("bear.ExportJson")
manager:addArmatureFileInfo("NewAnimation/NewAnimation.ExportJson")
print(manager)
local armature = ccs.Armature:create("NewAnimation")
print(armature)
armature:getAnimation():playWithIndex(0)
armature:getAnimation():setSpeedScale(1.2)
armature:setPosition(cc.p(display.cx, display.cy))
self:addChild(armature)
--添加plist骨骼动画
local plist = cc.ParticleSystemQuad:create("SmallSun.plist")
print(plist)
local bone = ccs.Bone:create("plist")
print(bone)
bone:addDisplay(plist, 0) --添加表现形式
bone:changeDisplayWithIndex(0,true) --切换变现形式
bone:setIgnoreMovementBoneData(true) --新增bone没有这个会被隐藏
bone:setLocalZOrder(100)
bone:setScale(0.5)
armature:addBone(bone, "zuo")
0 0
- 骨骼动画
- 骨骼动画
- 骨骼动画
- 骨骼动画
- 骨骼动画
- 骨骼动画
- 骨骼动画
- 骨骼动画
- 骨骼动画
- 骨骼动画
- 骨骼动画
- 简单的骨骼动画、骨骼动画理论
- 骨骼动画(Skeletal Animation)
- Ogre的骨骼动画
- 骨骼动画解释(转)
- 骨骼蒙皮动画DEMO
- 使用骨骼动画
- 骨骼动画(Skeletal Animation)
- ANDROID内存优化(大汇总——全)
- Nginx集群
- “钱三篇”后续之年金终值
- Java中HashMap,LinkedHashMap,TreeMap的区别
- Android SDK 在线更新镜像服务器资源
- 骨骼动画
- 名词解释:DMA分区、
- Webpower:5种趣味邮件营销方法,让你的客户High起来!
- ADB之Commands,个人翻译,请随便喷我
- 如何用win32api修改纸张大小
- MySQL的Grant命令
- 【UML】 之 概述
- 理解 Objective-C Runtime
- 二进制中1的个数