Hello,
I like to implement a small countdown. It works fine.
I have a label and a timer. All good :)
The only prblem is, the text of the label don't change, instead of this, the new text is overlaying the old text.
My Source:
// init
[self schedule: @selector(tick:)];
[self schedule: @selector(tick2:) interval:1.0];
[self schedule: @selector(tick3:) interval:2.0];
[self schedule: @selector(tick4:) interval:3.0];
[self addChild:einleitung];// the Label
.....
-(void) tick: (ccTime) dt
{
[einleitung setString:@"- 3 -"];
}
-(void) tick2: (ccTime) dt
{
[einleitung setString:@"- 2 -"];
}
-(void) tick3: (ccTime) dt
{
[einleitung setString:@"- 1 -"];
}
-(void) tick4: (ccTime) dt
{
[einleitung setString:@"START"];
}
What's wrong ?
Do i have to cleanup the old text ? If yes, how ?
Hoping for help :)
Greetings