Hi,
i’m getting a weird error on VS while compiling my code (Win32 app with lastest cocos2dx version):
“error C2440: ‘type cast’ : cannot convert from ‘void (__thiscall LevelScene::* )(cocos2d::CCTime)’ to ‘cocos2d::SEL_SCHEDULE’”
i’ve googled, searched in the forum, but nothing seems to be useful.
The fact is that there’s nothing uncorrect in my code syntax, as you can see:
i’m calling the scheduler in this way: this->schedule(schedule_selector(LevelScene::GameLogic), 1);
and my function is: void LevelScene::GameLogic(CCTime ct){}
i really don’t understand where’s the problem.
(I attach my class files to this post )
Thnx for your help!
Classes.zip (1.9 KB)