Advertise Books Events Forum News Social Networking Support Us

sdkIQ for iPhone
($4.99)

Shape Up
($0.99)

Your First iPhone App
($1.99)

Graves Robber
($1.99)

African Adventure
($0.99)

iTazer
($0.99)

ArtStudio
($3.99)

Pigs Vs Wolves
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 06-01-2009, 05:30 AM   #3 (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

Quote:
Originally Posted by Jason Rogers View Post
hi
I would go for a system like this

1) store the delay you want to apply (I would put in the detail of you custom frame)
2)do a for(MyCustomView *inst in TheCollectionThatGroupsMyListOfElement)
in which you can happely launch a timer that will animate you View and set the delay of the timer to the value stored in you custom view

Timer Programming Topics for Cocoa: Using Timers

I don't know what you mean by sprite ut if you mean a composed view (icon + text + another iamge etc

then just create a custom UIView in wich you build your custom display

i did like that to create a image with some text underneath

hope it helped

jason
Thank you for help. The "sprite" is a word in cocos2d library, you can check it out here:
cocos2d-iphone - Google Code

A sprite can flip, scale, move and do other actions, and it can have some children(other sprites).

I want to use the library to improve my development process, it seems that i need to implement sprite animation myself.But i just think if there is a way to do it with cocos2d Animation class.

NSTimer class is helpful to me, thanks.
iwind is offline   Reply With Quote
 
Enter the iPhone App Challenge!  Win $500!
» Advertisements
» Stats
Members: 23,769
Threads: 38,538
Posts: 169,284
Top Poster: smasher (2,544)
Welcome to our newest member, DragonFlyJones
Powered by vBadvanced CMPS v3.1.0

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