如何学习"动画在cocos2d" [英] how to learn "Animations in COCOS2D"

查看:90
本文介绍了如何学习"动画在cocos2d"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是新来的Cocos2D动画,我想了解它,一如既往我在动画​​的位置停止,而在cocos2d制作iPhone游戏。

I am new to cocos2d animations and I want to learn it , as always I stops at the point of animation while making iPhone games in cocos2d.

任何一个可以建议我去学习这样的动画,让游戏创造的动画将变得容易。

Can any one suggest me the way to learn such animations, so that games animation creating will become easy to make.

感谢。

推荐答案

好像有2种方式去 - 要么你的精灵是在一个规则的方式布局,因此可以以编程的方式来剔去精灵表,像这样第一个例子。另一种方法是使用像Zwoptex一个工具来创建精灵表和相应的plist告诉了cocos2d在哪里可以找到工作表上的图像,看第二个例子。

Seems like there are 2 ways to go - either your sprites are laid out in a regular fashion and so can be picked off the sprite sheet in a programmatic way, like this first example. The other way is to use a tool like Zwoptex to create the sprite sheet and a corresponding plist that tells Cocos2d where to find the images on the sheet, see second example.

教程获取精灵断片,采用常规布局:

Tutorial for getting sprites off a sheet, using a regular layout:

<一个href=\"http://getsetgames.com/2010/04/18/how-to-animate-sprites-in-cocos2d/\">http://getsetgames.com/2010/04/18/how-to-animate-sprites-in-cocos2d/

的基础是:


  1. 获取图像成一个大的图像/纹理

  2. 创建使用纹理CCSpriteSheet

  3. 在精灵表单创建使用图像之一CCSprite

  4. 创建一个CCAnimation和CCSpriteFrame的填充 - 每次重新$ P $动画psenting帧

  5. 创建一个CCAnimate采取措施来管理呈现每帧和精灵运行它,瞧。

另一种方法是使用像 Zwoptex 一个工具来将精灵表和细节的plist中导出表配置图片它的图像。

The alternative is to use a tool like Zwoptex to configure your images on a sheet which will export the sprite sheet and a plist of details of the images on it.

本教程的前三分之一解释它:

The first third of this tutorial explains it:

<一个href=\"http://www.raywenderlich.com/606/how-to-use-box2d-for-just-collision-detection-with-cocos2d-iphone\">http://www.raywenderlich.com/606/how-to-use-box2d-for-just-collision-detection-with-cocos2d-iphone

希望帮助,
克里斯

Hope that helps, Chris

这篇关于如何学习&QUOT;动画在cocos2d&QUOT;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆