简体   繁体   English

Cocos2d iPhone精灵问题

[英]Cocos2d IPhone sprite problem

The problem is - when i load game on iphone some sprites are shown, some are not, plus CCBitmapFontAtlas labels and CCMenu button are also not visible and when i tap on the place where button have to be - there is no effect. 问题是-当我在iPhone上加载游戏时,显示了一些精灵,有些精灵没有,加上CCBitmapFontAtlas标签和CCMenu按钮也不可见,并且当我点击必须放置按钮的地方时-没有效果。 At simulator it worked just fine. 在模拟器上,它工作得很好。 What is the reason of such strange situation? 出现这种奇怪情况的原因是什么? IPad aslo works ok. iPad aslo工作正常。

Hard to say without more detail, but it could be some issue with your build. 没有更多细节很难说,但这可能与您的构建有关。 Try cleaning your targets and republishing to make sure that your iPhone device has the exact files you want it to have. 尝试清理目标并重新发布,以确保您的iPhone设备具有所需的确切文件。 The behavior you describe could come from older versions of image files being used (say, an Atlas sprite going to a frame that used to be blank but has content in the new version). 您描述的行为可能来自所使用的图像文件的旧版本(例如,Atlas精灵会转到以前为空白但在新版本中具有内容的框架)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM