2013-08-21 1 views
1

TexturePacker를 통한 멀티 팩을 사용하여 동일한 스프라이트의 여러 애니메이션을 처리하려고합니다. TexturePacker에 모든 이미지를 추가하고 게시했습니다. 문제 없습니다. 내 프로젝트의 Resources 폴더에 추가했는데 Finder에서도 볼 수 있습니다.Cocos2d에서 멀티 팩 스프라이트 시트를로드 할 때 파일을 찾을 수 없습니다.

Resources folder

나는 다음과 같은 오류가 나는 바람이

-(CCSpriteBatchNode*)createSpritesheet { 
    [[CCSpriteFrameCache sharedSpriteFrameCache] addSpriteFramesWithFile:@"Clea1.plist"]; 

    CCSpriteBatchNode *spritesheet = [CCSpriteBatchNode batchNodeWithFile:@"Clea1.png"]; 

    return spritesheet; 
} 

전화 할 때 : 이런 일이 왜 난 정말 이해가 안

2013-08-21 00:08:13.024 HFZ[10498:a0b] -[CCFileUtils fullPathForFilename:resolutionType:] : cocos2d: Warning: File not found: Clea1.plist 
2013-08-21 00:08:13.025 HFZ[10498:a0b] cocos2d: CCSpriteFrameCache: Trying to use file 'Clea1.png' as texture 
2013-08-21 00:08:13.025 HFZ[10498:a0b] -[CCFileUtils fullPathForFilename:resolutionType:] : cocos2d: Warning: File not found: Clea1.png 
2013-08-21 00:08:13.026 HFZ[10498:a0b] cocos2d: Couldn't find file:Clea1.png 
2013-08-21 00:08:13.026 HFZ[10498:a0b] cocos2d: CCSpriteFrameCache: Frame 'CleaStand00.png' not found 

합니다. 멀티 팩 솔루션을 시도하기 전에 애니메이션 당 하나의 스프라이트 시트를 사용하려고했지만이 방법이 더 나은 방법이었습니다. 이것에 대한 아이디어가 있습니까?

답변

3

짐작할 때가 있지만 때로는 프로젝트에 리소스를 추가 할 때도 Copy Bundle ResourcesBuild Phase에 나타나지 않습니다. 그렇지 않으면, Clea1.plistClea1.pngCopy Bundle Resources 부분에 있는지를 두 번 확인 Project navigator

enter image description here

에서 드래그