导航

2013年1月20日

摘要: 1.[self scheduleUpdate];这样以默认cocos2d的刷新频率1/60.0s走- (void)update:(ccTime)dt一次停止方法:[self unscheduleUpdate];2.[self schedule:@selector(tick:)];这样以默认cocos2d的刷新频率1/60.0s走- (void)tick:(ccTime)dt一次,tick是自己定义的方法停止方法:[self unschedule:@selector(tick:)];3.[self schedule:@selector(secondUpdate:) interval:1.0f]; 阅读全文

posted @ 2013-01-20 23:43 ADaii 阅读(402) 评论(0) 推荐(0) 编辑

摘要: cocos2d中sprite动画接口及动画实现思路总结1)延时动作(CCIntervalAction )CCDelayTime:延时[CCDelayTime actionWithDuration:1]CCMoveTo :移动到[CCMoveTo actionWithDuration:2 position:ccp(s.width - 50, s.height - 50) ]CCMoveBy:移动[CCMoveBy actionWithDuration:2 position:ccp(-50, -50)]CCJumpTo:跳跃到-设置终点位置和跳跃癿高度和次数[CCJumpTo actionWith 阅读全文

posted @ 2013-01-20 15:01 ADaii 阅读(438) 评论(0) 推荐(0) 编辑