Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 06-01-2009, 03: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
 

» Advertisements
» Online Users: 712
21 members and 691 guests
ADY, Anahtarcı, dacapo, denied, fanarin, Fit4him, GameViewPoint, GHuebner, HDshot, ilmman, JasonR, joeallenpro, LiquidFire, mathieuh, Punkjumper, robotkid249, Sander, thesooty, Thompson22, troop231, wesgood
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,558
Threads: 89,128
Posts: 380,256
Top Poster: BrianSlick (7,103)
Welcome to our newest member, thesooty
Powered by vBadvanced CMPS v3.1.0

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