Hey all,
I was trying to create a default motion of a object of a class inherited from the CCSprite class.
But when i try to call the runAction inside the class definition, the function doesn’t work.
The application doesn’t crash, but the action is not performed.
class object : public CCSprite { ... ... public : void move(){ this->runAction(CCMoveTo::actionWithDuration(2.0f, ccp(0,0))); } }