After moving a distance with the follow animation, the followed node disappears

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));

The code modify like this in the AppDelegate.cpp file,that is OK.

glview->setDesignResolutionSize(designResolutionSize.width*4, designResolutionSize.height, ResolutionPolicy::NO_BORDER);

Because the designResolutionSize is not enough.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.