Wei-Sung Yeh Win8 Metro cocos2d-x schedule Error
Posts 31
Added by Wei-Sung Yeh 12 months ago

Hi...I use cocos2d-x for Win8 Metro
And i use schedule method

void HelloWorld::test(void) {
CCLOG;
}

this->schedule(schedule_selector(HelloWorld::test));

It will have error
error C2440: 'type cast' : cannot convert from 'void (__thiscall HelloWorld::* )(void)' to 'cocos2d::SEL_SCHEDULE'

But it can use in iOS or Android

Please help me

Wei-Sung Yeh RE: Win8 Metro cocos2d-x schedule Error
Posts 31
Added by Wei-Sung Yeh 12 months ago

I found the solution

need change to

void HelloWorld::test(ccTime ct) {
}


(1-1/1)