I am using any one condition at a time
Now If I am using 1 condition then I got an error but if I am using 2 condition, then it works fine…
What the difference between these two senario???
Thanks
I don’t catch your meaning fully?
Did you mean “pscene->schedule( schedule_selector(LevelManager::test), 0.5f);” would get error?
If so, what’s the error?
Hi, see the declare of schedule callback function, ’typedef void (CCObject::SEL_SCHEDULE);’
So if you wanna use schedule function, your test callback function must be defined as follow:
<pre>
void LevelManager::test // ccTime dt parameter is necessary.
{
pscene->unschedule); // because test callback function is invoked once, so it need to be unscheduled.
CCLabelTTF removeloadLabel = (CCLabelTTF*)(pscene->getChildByTag(99)); // working fine
}