cocos2d-x is a cross plaform port of cocos2d-iphone using C++. It supports iOS, Mac, Android, Samsung Bada, BlackBerry Tablet OS, Windows and Linux. It has built-in bindings for Lua and Javascript.

learn more… | top users | synonyms

0
votes
1answer
140 views

CCSequence with two CCAction

I have two CCActions : CCAction *a; CCAction *b; so how to use CCSequence with two CCActions Thanks
-2
votes
0answers
98 views

Unable to launch cygpath. Is Cygwin on the path? - cocos2d-x [closed]

I am new to cocos2d-x. I configure cocos2d-x in Windows 8 / Eclipse and I use android-ndk-r8b. First of all, before I get this error of cygpath, I had the following error: "Program bash not found in ...
0
votes
0answers
15 views

Weld Joint Box2d not run

i have two object like this : b2WeldJointDef weldJoint; //frist body bodyDefXich.type = b2_dynamicBody; bodyDefXich.position.Set(3, 2); b2FixtureDef fixtureDef; b2PolygonShape ...
-4
votes
0answers
38 views

Sprite blink while move [cocos2dx - ios] [closed]

I have big image (500x500), it moves across screen and blinks while moving. (debug on device) Anybody help me
5
votes
3answers
7k views

How to play animations in Cocos2d-x?

I'm new to Cocos2d-x and looking for a good way/tutorial on how to play animations in Cocos2d-x.
1
vote
2answers
513 views

CCUserDefault, iOS/Android and game updates

My game uses cocos2d-x and will be published on iOS platform first, later on Android. I save a lot of things with CCUserDefault (scores, which level was completed, number of coins taken, etc...). But ...
0
votes
0answers
38 views

Texture / CCSprite Loading and Unloading

Here I want to know how textures are loaded and unloaded in the game by cocos2d/cocos2d-x? Basically I am a developer of AndEngine and started working with cocos2d-x. In AndEngine, we have ...
-3
votes
0answers
88 views

How to parse .plist and read and write data (cocos2d-x) [closed]

On IOS, i'm looking for tutorial about parse .plist file. read and write data into plist file Please help me. THANK U SO MUCH
2
votes
2answers
190 views

How to use facebook sdk on a cocos2dx-project

I'm doing a game cocos2d-x, when user gets a high score, I want them to touch on the Facebook icon and share the high score on their Facebook account timeline. tutorials on facebook.developer.com ...
3
votes
2answers
290 views

How to achieve smooth movement with a fixed timestep

Previously in the update method of my game I was using a variable time step which provided very smooth movement of a player sprite except when the frame rate would drop, even slightly. At that point I ...
-1
votes
1answer
82 views

cocos2d-x export plist from images in windows free tool to use [closed]

as i learn to use cocos2d-x in the part on which i need to animate sprite images all the tutorials shows how to use something that called plist file that maps the coordinates of the images clips . ...
0
votes
0answers
76 views

cocos2d-xna CCScale9Sprite usage

I'm trying to get a CCControlButton to render on my game. Using a basic CCScale9Sprite as the button's background works using the following: var myScale9Sprite = ...
0
votes
0answers
58 views

Time animation in update method

I have 3 animations. The first has 4 frames with a total duration of 0.4s: ccanimation::createwithspriteFrames(animframes,0.1f); The second has 2 frames with a total duration of 0.2s: ...
-2
votes
1answer
183 views

are most 2D games tille based? [closed]

So I'm beginning the planing phase for a 2D game that I hope to deploy for iPhone, Android, and maybe windows phone, and I am writing it in Cocos2DX and I'm looking around for map editors that I could ...
0
votes
0answers
79 views

Problem with collision Box2D [closed]

I have been stuck with collisions in Cocos2d-x and Box2D for the past few days. I have a class object: Ball enum{ kActionIdle, kActionBigger, kActionCollision } Ball { //variable ...
0
votes
1answer
151 views

Rotate Box Sprite With Circle Body

I want to rotate my rectangular sprite with circle body. The problem is the body doest not attached to the centre of the sprite. This was the default behaviour of the body and sprite. But I want that ...
0
votes
0answers
43 views

Masking a CCLayer

I have a CCLayer (itemLayer) that has a bunch of CCMenuItemImage (itemButton) objects in it placed vertically in a column. These itemButton objects go way past the bounds of the screen and the ...
0
votes
0answers
120 views

Bike Race Concept [closed]

I am right now developing this type of game. https://itunes.apple.com/us/app/bike-race-free-by-top-free/id510461758?mt=8 I need help for following questions. I have some solutions for this but I need ...
1
vote
1answer
131 views

Debug Render In Cocos2d Android

I want to implement debug render for cocos2d android.So I can view how bodies are created. Right now I use gdx.jar file for box2d and load that jar file following way. static { ...
-2
votes
1answer
135 views

How to read key value pair in cocos2dx from txt file?

I this is the first time I am developing for BB10 OS using cocos2dx. I need to read key value pair in Cocos2Dx. eg: Skill= 5 Power= Awesome The target is Blackberry 10OS and using QNX ...
1
vote
0answers
163 views

Can I use a shader with 2 different textures in Cocos2D (x)?

We are evaluating a variety of different graphic engines for use in our game and we want to be able to use 2 different textures for many of our sprite maps. One sprite map would be the standard RGBA ...
2
votes
4answers
1k views

Different iPhone screen resolutions and game graphics

We are developing a 2D game for iPhone using cocos2d-x. The artists are drawing the raster graphic for a resoluion of 640x960. For older iPhone devices, those that have a resolution of 320x480, should ...
1
vote
1answer
649 views

cocos2d-x v2.1 CCSpeed, CCRepeatForever, and CCAnimation jerky at high speed

I worked to port Tim Roadley's cocos2d-iphone example from (Box2D Driven Cocos2D Animation) to cocos2d-x to learn cocos2d-x for a project. It is all relatively simple to do, but I am suffering from ...
3
votes
1answer
692 views

Isometric Tile maps in Cocos2d-x

Is there an specific isometric tile map handler in cocos2d-x? I can't find any.
2
votes
1answer
162 views

Handle Multiple Scene

For my game, now I adopt the strategy to create multiple scene. For this I have to ask two question please provide your view for my and other members for improvement. I have created single ...
0
votes
0answers
230 views

Setting up cocos2d-x-win8

just trying to use cocos2d-x for the first time developing metro-style games for Windows8. I followed the webpage instructions and got the following error in Visual Studio 1>------ Build started: ...
-5
votes
2answers
258 views

Cocos2D-X on Steam and iOS App Store [closed]

With Cocos2D-X can I really submit my games to Steam and iOS App Store? It's commercial quality? Do you have some samples of games built on Cocos2D-X that is on sales in Steam? Thanks.
0
votes
1answer
129 views

Camera Calculation

For my game I don't able to decide what camera resolution I have to use ? Normally I use 1024x600 landscape resolution of camera for my game and create single graphics for my game. But I found that ...
1
vote
2answers
275 views

How to swallow touches on CCMenu while sliding?

I'm creating a sliding menu for my game something like angry birds level selection but I'm having problem with buttons. If I accidentally touch any of the buttons while swiping the level starts to ...
0
votes
0answers
76 views

custom action - class design

I have a character sprite which walks to different points frequently. The walking animation is a CCSpawn of CCMoveTo and CCAnimate, where CCMoveTo moves the sprite in screen and CCAnimate show walking ...
0
votes
1answer
222 views

Get Text dimmensions on CCTextFieldTTF

Hi I want to know the width of the text inside the CCTextFieldTTF but I can't find a way to do it, I want this width so I can move a CCLabelTTF in that position so it can be like a cursor for the ...
3
votes
1answer
305 views

Getting the height of Keyboard on Android

Hi I need to know the height of my keyboard so I can move up some textfield I have in my app. I'm using cocos2D-X but the app don't recognize the keyboardWillShow method. Thanks
4
votes
1answer
562 views

Lua or C++ in Cococ2d-x

I am going to use Cocos2d-x to make a game for Android and ios, but my question is, do I use the Lua integration or only c++, I see Lua useful here because the compilation thing. Or do I use only Lua ...
3
votes
1answer
1k views

Sprite Animation using cocos2dx 2.0.2

I am trying to implement sprite animation using coco2dx. I have tried several demos, but all of them are same. While I tried, getting violation error in my code. ...
1
vote
0answers
154 views

How do I use Objective-C libraries in Cocos2d-x?

We've created several libraries in Objective-C in the past, and now we're moving to the Cocos2d-x game engine. We can't figure out how to reference and use those libraries (we've also tried compiling ...
1
vote
1answer
245 views

Why doesn't MoveBy work in this example?

I'd like to run an action on a sprite using the MoveBy action. After lots of attempts, I can't achieve the goal... I have issues with the MoveBy in 2 different projects, so maybe I'm missing something ...
12
votes
4answers
599 views

tunnel effect cocos2d

I am looking to create a similar tunnel effect in COCOS2D (iOS). Could anyone suggest any pointers? ref Video 1 ref Video 2 Till now I have tried with several ring shape sprites with decreasing ...
0
votes
1answer
511 views

Integrating SQLite to Cocos2d-x at Xcode

I have downloaded SQLite C/C++ interface to work with Cocos2d-x. Created a database by Firefox SQLite plugin. Then tried the following code // sqlite implementation sqlite3 *db; ...
2
votes
2answers
2k views

How to setup Cocos2D-X (Android) under Mac OS X?

Hi I've made a small game for iPhone that I also want to run on Android but I'm having problems setting up Cocos2D-X for Android. I've downloaded and installed Android SDK and NDK (under my ...
1
vote
0answers
353 views

Split Body and Sprite

I want to split the body and sprite into multiple pieces as like following link suggest: http://www.raywenderlich.com/14302/how-to-make-a-game-like-fruit-ninja-with-box2d-and-cocos2d-part-1 I try to ...
2
votes
1answer
335 views

Spriting Animation Method

http://www.kickstarter.com/projects/539087245/spriter At 3:00 they discuss that there is a method used to separate the parts of character into individual sprites and move them saving production time ...
3
votes
0answers
379 views

Deep Cloning C++ class that inherits CCNode in Cocos2dx

I'm stuck with something in Cocos2dx ... When i copy my class that inherits CCNode, i get a shallow copy of my class but the base type seem to still point to the original node address. We dont seem ...
1
vote
1answer
1k views

Android Cocos2DX using C++ in Eclipse Helios Windows XP

I have used Eclipse Helios 3.6.1 for Java development. I wanted to start C++ development in the same IDE so I installed Autotools Support For CDT, C/C++ Development Tools, C/C++ Library API ...
1
vote
0answers
163 views

Getting contour without the background

I have a texture and vertex which are needed to create a set of closed polygons. For this purpose I use these functions: Code for create texture: CCSprite* spr = ...
2
votes
2answers
573 views

Implementing a sine using a bezier curve

I'm developing a 2D game using Cocos2d-x. Is possible to use CCBezierTo to parameterize a sine function?
0
votes
1answer
372 views

Image with FadeIn effect blinks when added to scene

I am trying to add an image to the scene, but it should just be added to the scene invisible, FadeIn and then be deleted when the effect finishes. My problem is that the images blink once when they ...
1
vote
1answer
248 views

Adjust sprite bounds of the visible part of texture

Is there any way to adjust the boundaries of the visible part of the sprite? To make it easier to understand: I have a texture, such as shown at figure 1. Then I break it into pieces and fill the ...
6
votes
1answer
448 views

Puzzle game: clipping of non-convex polygons on the figures

I have an original figure in the SVG file. I need to break it randomly on parts, an example of which is specified below: I have an idea, to use for partitioning Voronoi diagram (Fortune's algorithm). ...
1
vote
2answers
1k views

Problem using ccTouchesEnded/ccTouchesBegan to move sprite in cocos2d-x?

I'm using ccTouchesBegan/ccTouchesEnded to move sprite from one point to another but I'm having problem, if i give two or more consecutive inputs one by one while sprite is moving(runAction is being ...
1
vote
1answer
693 views

Simple way to post score from my game to Facebook and Twitter?

What's the best and simple way to post score from my game to Facebook and Twitter with store link in cocos2d-x?

1 2