It is currently Tue May 21, 2013 9:53 am

All times are UTC - 8 hours




 Page 1 of 1 [ 2 posts ] 
Author Message
 Post subject: loading screen with plist files
PostPosted: Mon Mar 19, 2012 11:35 pm 

Joined: Wed Feb 22, 2012 9:42 am
Posts: 2
I see that the loading screen is loaded with just the files itself, can it be done with a plist file instead? thanks.


Offline
 Profile  
 
 Post subject: Re: loading screen with plist files
PostPosted: Mon Mar 26, 2012 12:19 pm 
Site Admin
User avatar

Joined: Wed Jan 11, 2012 1:57 pm
Posts: 12
Location: Los Angeles, CA
trans416 wrote:
I see that the loading screen is loaded with just the files itself, can it be done with a plist file instead? thanks.


As far as I can tell, to do this you first asynchronously load each png/jpg spritesheet file:
[[CCTextureCache sharedTextureCache] addImageAsync:@"sprites.png" target:self selector:@selector(nodeLoaded:)];

Inside of nodeLoaded you can pass the sheet name and load the corresponding plist using CCSpriteFrameCache:
[[CCSpriteFrameCache sharedSpriteFrameCache] addSpriteFramesWithFile:@"sprites.plist"];

After all is said and done you should have access to sprite frames like usual.


Offline
 Profile  
 
Display posts from previous:  Sort by  
 Page 1 of 1 [ 2 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

cron