We're a community of 1077K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,076,325 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

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

2
Contributors
0
Replies
1
View
Rickay
Junior Poster in Training
55 posts since Jul 2010
Reputation Points: 5
Solved Threads: 0
Skill Endorsements: 0

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
View similar articles that have also been tagged:
 
© 2013 DaniWeb® LLC
Page rendered in 0.2874 seconds using 2.65MB