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.
🙂
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.
🙂