About loading cocos2dx animation problem, jump page back to not show, error found resources

Source: Internet
Author: User

Use Cocostudio to do scenes and animations, Make sure that the file directory and files are present and not visible on the screen.

About

Cocos2d:cann ' t find ccspriteframe with Elf3.png. Please check your. plist file

Cocos2d:cann ' t find ccspriteframe with Elf4.png. Please check your. plist file

Cocos2d:cann ' t find ccspriteframe with Elf2.png. Please check your. plist file

Cocos2d:cann ' t find ccspriteframe with Elf1.png. Please check your. plist file

Problem, see online have a lot of friends also met, this problem wasted a few days, finally still ask my tutor to solve, hard to solve, at that time really happy,

Gee, I believe the monkey will understand my mood at that time, not to say, solve the problem is the most important:

1. My start page looks like this:




2, click to start the game, and then into the game scene, after the game to jump back to this page, and then changed this way:




Suddenly people didn't come, what the hell is going on? Then report this error:




Online to find a variety of information, did not find a solution to the problem, and then asked the sea teacher, thank you for helping me Shen Dahai teacher Oh, he is a great God oh, estimated that many people have seen his video and blog,

Haha, give him advertising ah, hey:

Then he wrote two lines of code to solve, it really surprised me, eh, as follows:


armaturedatamanager::getinstance(), Destroyinstance();

scenereader::getinstance(), Destroyinstance();



Write in my jump scene when the current destruction, and then jump over the time to reload;

This is what I loaded

Scenenode = Scenereader ::getinstance(), Createnodewithscenefile("Scene/ui_home.json");

Home code, expression should be no problem, anyway happy is this to solve, too happy, haha


About loading cocos2dx animation problem, jump page back to not show, error found resources

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.