zrong / dragonbones-for-cocos2d-x Goto Github PK
View Code? Open in Web Editor NEWHome Page: http://zengrong.net/post/1915.htm
License: MIT License
Home Page: http://zengrong.net/post/1915.htm
License: MIT License
在flash中把导出缩放比设置为2的时候,在cocos2d中位置就偏移了…
感谢zrong制作coco2d-x专用的这个插件,使用后带来了很大的方便!
现在我遇到了一个问题,在将动画加入到程序时,发现单个的动画是ok的,但是当遇到两个以上的动画文件时就会出现贴图错误.
经过分析发现多个动画的plist文件中的图片key是一致的,这样多个动画文件会找到同一张图片进行贴图!
<key>head.png</key> //就是这个地方,多个动画的会对应同一张head图片
<dict>
<key>frame</key>
<string>{{137,0},{89,58}}</string>
<key>offset</key>
<string>{0,0}</string>
<key>rotated</key>
<false/>
<key>sourceColorRect</key>
<string>{{0,0},{89,58}}</string>
<key>sourceSize</key>
<string>{89,58}</string>
</dict>
这样的话可否在导出合并大图时在head.png的前面加上导出的名字,变为xxx_head.png?确保不会重复
或者是我的用法不对?在讲图片添加到flash的资源库中时就要手动保证不会重复?
我现在的是写了一个python脚本批量添加的,但每次改变动画后,都需要执行一次,略显麻烦!
个人环境:WIN7 + FLASH CS6
将动画导出为PLIST+PNG+XML,然后原封不动的选择导入,提示
导入失败!
未知的数据格式错误!
请问这个应该怎么解决?
use flash cc for mac create .fla and add frame animations ,export the amination will case the plist .png.png image name
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.