954,529 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Cocos2d Objective C Sprite File Format

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

Rickay
Junior Poster in Training
55 posts since Jul 2010
Reputation Points: 5
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: