Top "Cocos2d-x" questions

C++ cross-platform version of Cocos2D, an open-source mobile 2D game framework.

Cocos2d js touch events

I'm building an app in cocos2d-js, and I've got a problem with listening to keyboard events. I expect a …

javascript ios touch cocos2d-x cocos2d-js
Add delay to code execution in C++

Say I need to call a function with 2 seconds delay. In cocos2d-x you can use actions: auto action = Sequence::…

c++ cocos2d-x delay cocos2d-x-3.0
How to fix android manifest.xml naming conflict?

For some reason, even though my app name appeared correctly next to the app icon, when I looked for the …

android cocos2d-x android-manifest
cocos2d-x v 2.0.4 FATAL EXCEPTION GLThread when run on Android emulator

I create cocos2d-x app I'm using cocos2d-2.0-x-2.0.4 I've got error when trying to run app from Eclipse …

android opengl-es android-emulator cocos2d-x
Program bash is not found in path?

I have tried many times to set up Cocos2dx in Eclipse, but haven't been able to get it to …

cocos2d-x cocos2d-android
UnsatisfiedLinkError: Couldn't load cocos2dcpp: findLibrary returned null

We have been getting a lot of crash reports on google play with the following crash log : java.lang.ExceptionInInitializerError …

android c++ android-ndk cocos2d-x unsatisfiedlinkerror
How to create a cocos2dx-3.0 project in xcode?

I downloaded cocos-2dx 3.0rc and run "setup.py". READ.ME tells that we can use "cocos new" to create …

xcode cocos2d-x cocos2d-x-3.0
Getting and setting the RGB / RGBA value of a pixel in a CCSprite (cocos2d-x)

Why do I need this? Basically I need to turn a color image into gray-scale. Including a gray-scale version of …

rgb ccsprite grayscale rgba cocos2d-x
Cocos2dx memory management, how to use destructors and when to release objects?

I'm reading around the web and the documentation but to be honest, I don't get it. Since I'm new to …

c++ cocos2d-x destructor
How to terminate a std::thread?

I am currently developing a program that needs to download some images from the socket server,and the downloading work …

c++ multithreading c++11 cocos2d-x stdthread