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
Related Article: Iphone Frames and Bounds
is a Objective-C discussion thread by Legomani that has 1 reply, was last updated 1 year ago and has been tagged with the keywords: ios, iphone.
Rickay
Junior Poster in Training
55 posts since Jul 2010
Reputation Points: 5
Solved Threads: 0
Skill Endorsements: 0