Unknown-type std::invoke(_Callable &&,_Types &&...)

Yes, I am migrating from cocos2d-x v2.
As many of the functions has been deprecated Its getting this much error.
This code runs well on xCode. Only the warnings are coming but on windows its giving errors.
I have almost sorted out all the errors even though some are remaining.

“ballFired” is the only thing I need to look?
or there is some other issue?

I think the main problem is with onTouchMoved, the ball is not getting fired on touch moved.

These lines are commented out => the action does not run => checkMatch is not called => ballFired = false is not called.

// Sequence * collisionWithWalls = Sequence::create(sequence);------------        
// firedBall->runAction(collisionWithWalls);-------------------

The solution:

  • Change Array * sequence = Array::create(); to Vector<FiniteTimeAction*> sequence;
  • Change sequence->addObject to sequence.pushBack

Thanks a lot @enrevol.
Its finally running because of you.

I am attaching the screenshot of my game.
There is the positioning error and also when the bubbles gets matched the disappears but there positions are still occupied.