Egret社区

DragonBones 导出JSON有问题

2019-7-18 14:19
3383
11银子
本帖最后由 某先生 于 2019-7-18 15:10 编辑

我用DragonBones做完动画  但是导出spine,放CCS里面就报错,游戏直接崩溃  求大佬帮忙

{"skeleton":{"width":271.77,"height":197.33,"fps":12,"hash":" ","name":"Armature"},"bones":[{"name":"root"},{"length":48,"name":"di","parent":"root"},{"length":30,"x":10.4243,"y":-12.775,"name":"sizi","parent":"di"},{"length":21,"x":10.7714,"y":-12.9857,"rotation":63.0198,"name":"dongzi","parent":"di"},{"length":20,"x":23.6441,"y":51.3338,"rotation":75.5518,"name":"xiongmao","parent":"di"},{"length":19,"x":-38.2518,"y":4.4005,"rotation":56.1184,"name":"zhuzi","parent":"xiongmao"}],"slots":[{"name":"di","bone":"di","attachment":"di"},{"name":"guang0001","bone":"sizi","attachment":"guang0001"},{"name":"guang0010","bone":"dongzi","attachment":"guang0010"},{"name":"guang0009","bone":"dongzi","attachment":"guang0009"},{"name":"guang0008","bone":"dongzi","attachment":"guang0008"},{"name":"guang0007","bone":"dongzi","attachment":"guang0007"},{"name":"guang0006","bone":"dongzi","attachment":"guang0006"},{"name":"guang0005","bone":"dongzi","attachment":"guang0005"},{"name":"guang0004","bone":"dongzi","attachment":"guang0004"},{"name":"guang0003","bone":"dongzi","attachment":"guang0003"},{"name":"guang0002","bone":"dongzi","attachment":"guang0002"},{"name":"xiongmao","bone":"xiongmao","attachment":"xiongmao"},{"name":"shuzi","bone":"zhuzi","attachment":"shuzi"}],"skins":{"default":{"di":{"di":{"name":"di","width":265,"height":165}},"guang0001":{"guang0001":{"name":"guang0001","width":157,"height":40}},"shuzi":{"shuzi":{"name":"shuzi","width":55,"height":47,"x":25.14,"y":5.95,"rotation":-131.67}},"guang0002":{"guang0002":{"name":"guang0002","width":157,"height":40,"rotation":-63.02}},"guang0007":{"guang0007":{"name":"guang0007","width":157,"height":40,"rotation":-63.02}},"guang0010":{"guang0010":{"name":"guang0010","width":157,"height":40,"rotation":-63.02}},"guang0009":{"guang0009":{"name":"guang0009","width":157,"height":40,"rotation":-63.02}},"guang0008":{"guang0008":{"name":"guang0008","width":157,"height":40,"rotation":-63.02}},"xiongmao":{"xiongmao":{"name":"xiongmao","width":149,"height":127,"rotation":-75.55}},"guang0005":{"guang0005":{"name":"guang0005","width":157,"height":40,"rotation":-63.02}},"guang0003":{"guang0003":{"name":"guang0003","width":157,"height":40,"rotation":-63.02}},"guang0004":{"guang0004":{"name":"guang0004","width":157,"height":40,"rotation":-63.02}},"guang0006":{"guang0006":{"name":"guang0006","width":157,"height":40,"rotation":-63.02}}}},"animations":{"newAnimation":{"bones":{"xiongmao":{"scale":[{"time":0,"x":1,"y":1},{"time":0.8333,"x":1.1,"y":1.1},{"time":1.6666,"x":1,"y":1}]},"zhuzi":{"rotate":[{"time":0,"curve":"stepped","angle":0},{"time":1.3333,"angle":0},{"time":1.6666,"angle":-3},{"time":1.9999,"angle":0},{"time":2.3332,"angle":3},{"time":2.6665,"angle":0}],"shear":[{"time":0,"curve":"stepped"},{"time":1.3333},{"time":1.6666},{"time":1.9999},{"time":2.3332},{"time":2.6665}]}},"slots":{"guang0009":{"color":[{"time":0,"curve":"stepped","color":"FFFFFFFF"},{"time":0.5,"curve":"stepped","color":"FFFFFF00"},{"time":1.3333,"curve":"stepped","color":"FFFFFFFF"},{"time":1.5,"color":"FFFFFF00"}]},"guang0008":{"color":[{"time":0,"curve":"stepped","color":"FFFFFF00"},{"time":1.1667,"curve":"stepped","color":"FFFFFFFF"},{"time":1.3334,"color":"FFFFFF00"}]},"guang0007":{"color":[{"time":0,"curve":"stepped","color":"FFFFFF00"},{"time":1,"curve":"stepped","color":"FFFFFFFF"},{"time":1.1667,"color":"FFFFFF00"}]},"guang0006":{"color":[{"time":0,"curve":"stepped","color":"FFFFFF00"},{"time":0.8333,"curve":"stepped","color":"FFFFFFFF"},{"time":1,"color":"FFFFFF00"}]},"guang0005":{"color":[{"time":0,"curve":"stepped","color":"FFFFFF00"},{"time":0.6667,"curve":"stepped","color":"FFFFFFFF"},{"time":0.8334,"color":"FFFFFF00"}]},"guang0004":{"color":[{"time":0,"curve":"stepped","color":"FFFFFF00"},{"time":0.5,"curve":"stepped","color":"FFFFFFFF"},{"time":0.6667,"color":"FFFFFF00"}]},"guang0003":{"color":[{"time":0,"curve":"stepped","color":"FFFFFF00"},{"time":0.3333,"curve":"stepped","color":"FFFFFFFF"},{"time":0.5,"color":"FFFFFF00"}]},"guang0002":{"color":[{"time":0,"curve":"stepped","color":"FFFFFF00"},{"time":0.1667,"curve":"stepped","color":"FFFFFFFF"},{"time":0.3334,"color":"FFFFFF00"}]}}}}}

分享到 :
0 人收藏

3 个回复

倒序浏览
技术友  圆转纯熟 | 2019-7-18 15:26:14
某先生  初学乍练 | 2019-7-18 15:30:57
技术友 发表于 2019-7-18 15:26
是按官网操作的吗http://developer.egret.com/cn/github/egret-docs/DB/dbPro/import/importCosos/index.ht ...

我是导出成Spine格式的~~
某先生  初学乍练 | 2019-7-18 17:00:34
dinga~~~~
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

某先生

初学乍练

积分: 3 帖子: 3 精华: 0

楼主热帖

小黑屋|京网文[2014]0791-191号|京ICP证150115号|Egret社区 ( 京ICP备14025619号 )

Powered by Discuz! X3.4 © 2001-2019 Comsenz Inc.

返回顶部