Can anyone tell me what the alternative to
[self schedule:@selector(gameLogic:) interval:1.0];
is in Cocos2dx…
I used
bool HelloWorld::Init
{
//......
schedule(schedule_selector(HelloWorld::gameLogic), 0.5f);
}
void HelloWorld::gameLogic(ccTime dt)
{
addTarget();
}
The gameLogic function that I have coded Xcode gives an error that in the class HelloWorld.h ccTime is not declared
I tried including ccTypes.h but still no use.
Help