Friday, November 4, 2022
HomeGame DevelopmentBody of animation not loading - C++

Body of animation not loading – C++


When the code is as follows, the ‘zjxqydk.plist’ body animation can’t be loaded usually.

	SpriteFrameCache::getInstance()->addSpriteFramesWithFile("zjxhydk/zjxhydk.plist");
	SpriteFrameCache::getInstance()->addSpriteFramesWithFile("zjxhydm/zjxhydm.plist");
	SpriteFrameCache::getInstance()->addSpriteFramesWithFile("zjxqydk/zjxqydk.plist");

When the modified code is as follows, the ‘zjxhydk.plist‘ body animation can’t be loaded usually.

	SpriteFrameCache::getInstance()->addSpriteFramesWithFile("zjxhydm/zjxhydm.plist");
	SpriteFrameCache::getInstance()->addSpriteFramesWithFile("zjxqydk/zjxqydk.plist");
	SpriteFrameCache::getInstance()->addSpriteFramesWithFile("zjxhydk/zjxhydk.plist");

Why is the final body of animation not loading?


RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments