please check this line, followTheSprite is Action type pointer:
followTheSprite = Follow::create(sprite3, Rect(0, 0, 0, 0));
please check this line, followTheSprite is Action type pointer:
followTheSprite = Follow::create(sprite3, Rect(0, 0, 0, 0));