【发布时间】:2014-06-25 13:31:37
【问题描述】:
我在 sprit builder 资源文件夹中添加了一个 .png 图像并已发布。
我在 Published-IOS 下的 Resources 中的 sprite builder 所有文件夹中看到添加的图像。
这里我尝试通过以下方式访问添加的图像。
_hero.spriteFrame = [CCSpriteFrame frameWithImageNamed:@"Down.png"];[_hero setTexture:[CCTexture textureWithFile:@"Game/Down.png"]]
但是这些方法都不起作用。
它在日志中显示错误。
-[CCFileUtils fullPathForFilename:contentScale:] : cocos2d: Warning: File not found: Down.png
请帮我解决这个问题。我是使用此 sprit builder 的新手。
【问题讨论】:
-
图片在哪个文件夹?包括大写/小写在内的确切名称是什么?
-
@LearnCocos2D 请在编辑中找到我的附件图片
标签: ios cocos2d-iphone spritebuilder