How to call a function after fixed time interval in Cocos2D ?

By | July 28, 2011

Hi,

For calling a function after a definite time interval in Cocos2D, use the following code.


[self performSelector:@selector(yourFunction) withObject:nil afterDelay:7.0];

this will call the function ‘yourFunction’ after 7 seconds.
🙂

Leave a Reply

Your email address will not be published. Required fields are marked *