我是Cocos2D的新手,我现在正在尝试ABC123(从互联网上下载,由kwigbo创建) 我想知道为什么它的模拟器工作得很好,但是我正在使用我的iPad来测试它....问题出现了......我试了2周但仍然无法解决它...希望有人能教我?非常感谢....
最初泡泡会在玩家记住单词的位置后出现,但是当使用iPad运行它时...泡泡在启动后很快就会出现,玩家根本无法记住游戏中的单词位置......
我试图将延迟部分从delayTime = 1.5更改为4;:
@ GameLayer.m
float delayTime = 4.0;
if(dataManager.currentlevel > 10) delayTime = 2.5;
[self runAction:[Sequence actions:[DelayTime actionWithDuration:delayTime], [CallFunc actionWithTarget:self selector:@selector(showBubbles)], nil]];
它在模拟器中延迟但在iPad中没有变化....
与OrbSprite.m有任何关系吗?
@ OrbSprite.m的init:
Label *l = [[Label alloc] initWithString:@"" dimensions:CGSizeMake(50, 50) alignment:UITextAlignmentCenter fontName:@"Arial Rounded MT Bold" fontSize:45];
self.label = l;
[l release];
//[self initWithFile:@"bubble1.png"];
Animation *bub = [Animation animationWithName:@"bubble" delay:1.0f images:@"bubble1.png", @"bubble2.png", nil];
self.bubble = bub;
[bub release];
[self addAnimation:bubble];
或者我应该在这条线上做什么?
- (void) showBubble
{
isBubble = YES;
[self setDisplayFrame:@"bubble" index:1];
self.scale = .1;
[self runAction:[Sequence actions: [ScaleTo actionWithDuration:.1 scale:0.1], [ScaleTo actionWithDuration:.1 scale:1], nil]];
[self removeChild:label cleanup:YES];
}