Questions tagged [coco2d-x]
12 questions
2
votes
0 answers
Cocos 2d CCMenu to appear
I want to use a image for 80 times (same Image) Instead of adding CCMenu 80 time there is any alternate way.
CCMenuItemImage…

Ananth
- 21
- 1
1
vote
1 answer
Cocos2d-x PhysicsContact Object Reference
I'm trying to make a videogame with C++ in Cocos2d-x but I have an issue with PhysicContact.
In my gamescene I have a contact listener that check for collisions with the character and objects' PhysicBody of class Item. It all works fine, but now I…

DavidMartinez95
- 11
- 1
1
vote
0 answers
Cannot find libcocos2d ios.a library in Xcode
I have downloaded the cocos2d-x 3.6 yesterday. And I do follow the steps in this tutorial page: http://cocos2d-x.org/wiki/How_to_Start_A_New_Cocos2D-X_Game.
I build and run my new project in Xcode successfully. But I notice that there is no…

firestoke
- 1,051
- 11
- 23
0
votes
0 answers
How do I fix my Cocos2d-x project in visual Studios from taking a long time to load
Image of the load screen
I am making a game in Cocos2d-x using Visual Studios 2015, it complies quickly, but then freezes on the below image.
Why does it compile quickly but then takes a long time to actually load up?

user7710593
- 1
- 1
0
votes
2 answers
release coco2dx application in vs2015 to win7 msvcr110.dll is missing dll
for debug version, missing MSVCP140D.DLL
for relase verson, missing MSVCR110.DLL
could any body tell me how to release coco app in vs 2015?
I've set all build settings to MTd for debug, and MT for release, and use of MFC: use static MFC.
and tried…

Lindy
- 287
- 5
- 13
0
votes
1 answer
cocos2d-x 3.x openGL getting Error
I'm trying now migration cocos2d-x v2 to cocos2d-x v3.x.
CC_ENABLE_DEFAULT_GL_STATES();
glBindTexture(GL_TEXTURE_2D, m_pobTexture->getName());
glVertexPointer(2, GL_FLOAT, 0, vertices);
glTexCoordPointer(2, GL_FLOAT, 0,…

김철용
- 21
- 3
0
votes
1 answer
how to I change CCArray type to SpriteFrame?
The error lies in
CCAnimation *_runAnim = CCAnimation::createWithSpriteFrames(zoewalkingFrames, 0.1);
this line, when I'm trying to pass CCArray zoewalkingFrames to CCAnimation _runAnim, the log says "Reference to type 'const Vector could not bind…

Zoe
- 49
- 4
0
votes
2 answers
How do I remove a node from current scene in Coco2d-x
There are three messageboxes in the current scene, here I named them _grannyMessage, _grannyMessage2, _grannyMessage3 respectively. I want to make _grannyMessage disappear from the scene when _grannyMessage3 is created in the scene. I am trying to…

Zoe
- 49
- 4
0
votes
1 answer
coco2d-x v3.x run specific code when touch screen is pressed is not released
I am developing a mobile game using coco2d-x framework with C++ language. The platforms I target are IOS and Android.
I want to run some code when an user is pressing a sprite as long as he doesn't release the press without moving the finger. I went…

Jewelz973
- 3
- 2
0
votes
1 answer
CCUserDefault flush, CFPreferences Background Sync Queue
We developed a game using cocos2dx framework. Our app crashed in following line (not all the time, around 1 in 20 times).
Can you please help us to identify the issue.
CCUserDefault::sharedUserDefault()->setIntegerForKey("NetWorth", netWorth); …
0
votes
1 answer
cocos2d-js android devices don't respond to touch events, iOS and web does work with touch events
I am using cocos2D-JS to port my 2D game to multiple platforms.
The problem I am having is whenever I run and test the game on an android device, it won't respond to touch events at all. With the exact same code, I can build and run it on iOS…

Snuffy
- 1
- 2
0
votes
1 answer
How to disable event propagation to lower level layers?
I use cocos2d-x 3.0 RC1 and I need the following: the topmost layer should get all the events, and should not propagate the events to the layers that are below the topmost layer. I don't know how I can do that. I have tried to figure out something…

Narek
- 38,779
- 79
- 233
- 389