cocos2d-x Questions

2

Solved

There is a python script that builds cocos2dx-project. When it runs it prints out all the warning and error messages. But I want to get only those lines that contain "error". Therefore, I do the fo...
Woodard asked 30/5, 2014 at 23:57

4

Solved

Cocos2d-x 3.0 alpha was released for some time now. What was improved over cocos2dx-2? The features list is quite important, but in terms of performance are there new limitations/improvements? Ha...
Affecting asked 20/12, 2013 at 1:42

1

Solved

I am developing games and facing problem with creating timer. I need some logic like time should start from 60 sec when it reach to 0 game should end. I am new to this platform.
Positivism asked 13/5, 2014 at 6:13

2

Solved

I am trying to compile an android app using boost 1-49's serialization library. Specifically, this project had some convenient scripts to get the job done: https://github.com/MysticTreeGames/Boost-...
Scrap asked 17/1, 2013 at 14:46

1

How do I write the TDD for "is sprite added or not" in the scene for cocos2d-x in eclipse. Here is my code CCSprite *sprite =null; //adding sprite code sprite = new CCSprite(); sprite->initWit...
Storytelling asked 4/4, 2014 at 9:26

1

Solved

//in my .h file virtual void draw(); //in .cpp void GameLayer:draw() { Layer::draw(); //draw code goes here } It shows cannot override forward function node::draw() As far as I know, it was w...
Barrettbarrette asked 9/5, 2014 at 5:11

2

I downloaded cocos-2dx 3.0rc and run "setup.py". READ.ME tells that we can use "cocos new" to create a project and "cocos run" to run a project. However, I tried to use xcode to create a new projec...
Wadley asked 16/3, 2014 at 9:49

3

Solved

I am using CCTouchTargetedDelegate with a Class subclassed by CCSprite. when defining delegate methods i am not being able to use "this" inside the functions. as answered on previously asked quest...
Arnulfoarny asked 5/5, 2014 at 6:21

3

Solved

I'm working on a plugin project on cocos2d-x platform , I'd like to write some c++ wrapper interface to invoke java method through JNI from jar SDK . I know how to use JNI to invoke a static java m...
Tantalum asked 22/4, 2014 at 14:54

1

Solved

When I was reading the Cocos2dx 3.0 API, I found something like this: auto listener = [this](Event* event){ auto keyboardEvent = static_cast<EventKeyboard*>(event); if (keyboardEvent->_...
Neidaneidhardt asked 8/4, 2014 at 7:18

3

Could someone please advise where and how to add assets to an Android Cocos2D-X project. I've tried both just linking the assets to the 'assets folder' in Eclipse as well as physically placing a co...
Blais asked 18/1, 2013 at 18:49

6

Solved

i'm programming in c++ using cocos2dx and when adding a sprite or objects, this-> addChild(something) and addChild(something) works. Both ways come up with same result. But not only in c++, this...
Protoplasm asked 5/3, 2014 at 4:33

2

Solved

I have installed correctly the Android SDK, Android NDK, eclipse, and I have the last repository's cocos2d from git. I have followed the steps in the wiki to generate a project and I have done cor...

4

Solved

After using 'cocos2d-iphone' in one of my projects, I am trying to decide which flavor of Cocos2d I should use for an Android game. My personal list of pros and cons: Cocos2d-x pros: it should be...
Intrigante asked 13/12, 2011 at 3:8

2

Solved

Are there any general guide lines for using retain and release for objects in cocos2d-X ? When creating objects in a function, is it true that the functions memory is cleaned up the second the func...
Intuitivism asked 13/1, 2014 at 7:37

3

Solved

I am getting the following warning when compiling my cocos2d-x project with cygwin. `/cygdrive/e/project/MyGame/proj.android ` /cygdrive/e/android-ndk-r8e/build/core/add-application.mk:128: Androi...
Liberate asked 8/4, 2013 at 6:1

1

Solved

I've followed this tutorial http://www.raywenderlich.com/33750/cocos2d-x-tutorial-for-ios-and-android-getting-started, and managed to create an android hello world project in cococs2d-x. Now when I...
Colonel asked 30/12, 2013 at 14:39

5

I'm looking for a 2d framework with such things as layers/particles/screen manager/sprite batch/parallax/etc coded in c++ out there? I'm looking for somethings that doesn't necessarily have graphic...
Interview asked 14/10, 2010 at 23:50

1

I try to run cocos2d-x v 2.2 helloword project in QtCreator. I'm using this project file based on this repository https://github.com/FlyingFishBird/cocos2d-x_2_0_4_templete_for_qtcreator/graphs/con...
Jeep asked 7/12, 2013 at 12:39

3

Solved

I'm currently porting an ObjC cocos2d game to cocos2d-x, but I'm encountering some problems when trying to create a registerWithTouchDispatcher method, at the moment I'm doing void GameLayer::regi...
Merriment asked 29/6, 2012 at 15:2

3

Solved

I'm reading around the web and the documentation but to be honest, I don't get it. Since I'm new to cocos2d-x I would like to understand better how the objects are created/retained and what I'm sup...
Girish asked 17/11, 2013 at 22:14

4

Solved

i want to read a plist using cocos2d-x (c++) here is my plist: <array> <dict> <key>x</key> <integer>0</integer> <key>y</key> <integer>0&...
Malcom asked 17/5, 2012 at 10:32

1

Solved

So I'm trying to create a simple app using cocos2d-x newest build and for some reason can't get my touch wired up. Here are my classes: class GameLayer : public cocos2d::Layer { public: static co...
Cite asked 3/11, 2013 at 1:8

7

Solved

I have worked some with Cocos2d for iPhone and find it delightful. I am starting another project, and have stumbled across Cocos2d-x, a C++ port. I'm tempted by the notion of being able to (w...
Legalize asked 18/6, 2011 at 22:41

2

I am trying to port the pixel perfect collision detection in Cocos2d-x the original version was made for Cocos2D and can be found here: http://www.cocos2d-iphone.org/forums/topic/pixel-perfect-coll...
Kerouac asked 31/8, 2013 at 8:16

© 2022 - 2024 — McMap. All rights reserved.