1.11M Members

Cocos2d Objective C Sprite File Format

 
0
 

Hey people. Been having a problem when trying to use .gif files as images for sprites. When I try to use one, I get an error such as:

Documents/Code/Cocos2D/Cocos2D/Player.png: No such file or directory

But in the code, I am calling for the picture "Player.gif" to be used, as you can see:

CCSprite* player = [CCSprite spriteWithFile:@"Player.gif"
            rect:CGRectMake(0,0,48,48)];

So... what am I missing?

Thanks

You
Post:
Start New Discussion
View similar articles that have also been tagged: