How can I create a count down timer for cocos2d?

后端 未结 6 1605
灰色年华
灰色年华 2020-12-13 15:30

I am developing a 2D iPhone game by using cocos2d. I need a countdown timer. How can I create a count down timer in cocos2d?

6条回答
  •  粉色の甜心
    2020-12-13 15:45

    In cocos 2d there is default update section for timer.

    Try this:

    [self schedule:@selector(update:)];
    - (void)update:(ccTime)dt {
    }
    

提交回复
热议问题