Summary of some problems encountered in the process of Cocos2d-x Project

Source: Internet
Author: User

These days in the use of Cocos2D-X to try to do a small game, of course not innovation, just imitation, is to be used in practice the technology learned during this time.
In this process, I encountered some problems and made some conclusions here to avoid similar problems in the future. Sharing with zajun, I hope to be able to play a little help in the development of zajun in the future. Even if it is just a little bit, I will not be able to bear the original intention of O (∩) O Haha ~

1. After Entering the scenario, the expected control moving effect is not displayed.

Error cause: the onEnter () method of the parent class is not called.

2. SimpleAudioEngine cannot be found

Error cause: the header file # include "SimpleAudioEngine. h" is not imported.

Using namespace CocosDenshion; namespace not referenced

3. Call CCDirector: sharedDirector ()-> replaceScene (GameAbout: scene (). After switching the scenario, the new scenario is displayed in black.

Cause of error: CREATE_FUNC (GameAbout) is not used; create a new scenario using macro

4. the following error is reported when the project compiled with VS2012 is used and run with VS2010:

Fatal error LNK1123: failed during COFF conversion: Invalid or corrupt file

The solution is as follows:

Project \ properties \ configuration properties \ Configuration tool \ Input and Output \ embedded list: changed from "yes" to "no ".

5. CCSpriteBatchNode only support CCSprite

Error cause: Add a non-CCSprite object to the CCSpriteBatchNode object

6. Expected title movement and background movement

Error cause: the title and background tags are repeated.

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.