Please take a look at this video:
I didn’t delete the sprite node, but the sprite node disappeared after moving some distance to the right. Then it reappears after moving a distance to the left. why?
The code as follow:
auto s = Director::getInstance()->getWinSize();
auto pFollow=Follow::create(node2,Rect(0, 0, s.width * 3 - 100, s.height));
this->runAction(pFollow);