Advertise Books Events Forum News Social Networking Support Us

sdkIQ for iPhone
($4.99)

Shape Up
($0.99)

Your First iPhone App
($1.99)

iVidCam Free
(free)

Kid Art
($0.99)

iPUBQUIZ
(£1.19)

ArtStudio
($3.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 06-01-2009, 02:46 AM   #1 (permalink)
iwind
New Member
 
Join Date: May 2009
Location: Beijing, CN
Posts: 23
Send a message via MSN to iwind Send a message via Skype™ to iwind
Default How can i set delay for each frame in an animation?

I am using cocos2d library, and now i have a question, how can i set delay for each frame in an animation? In cocos2d, you can only set a duration on animation, but i want to let different frame stay different time, for instance,
frame1 stay 0.1 second
frame2 stay 0.2 second
frame3 stay 0.15 second

How can i do this?

Another question, can the frame be a sprite? Because i want to add more than one images to each frame.

Thanks for help advanced.
iwind is offline   Reply With Quote
 
Enter the iPhone App Challenge!  Win $500!
» Advertisements
» Stats
Members: 24,144
Threads: 38,921
Posts: 170,764
Top Poster: smasher (2,565)
Welcome to our newest member, HovRay567
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 09:00 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.