cocos2d is a free open-source framework for building 2D games, demos, and other graphical/interactive applications.
-5
votes
0answers
35 views
Application Slows Down [closed]
I m developing an app on box2d with cocos2d what happen after some time my app slows down.i m not getting why this is happening how can i increase my application performance slow down.
Thanks,
Jubin ...
-1
votes
2answers
51 views
Semi Transparent Background in Scene
In my game I want to create game over scene which is semi transparent so game scene become partially visible.
Game over scene contain several button that are not transparent but I need only ...
-5
votes
0answers
62 views
SDK for car racing game other than UNITY [closed]
i am iOS developer and new to 3d games,I want to create an car racing game in 3d. please suggest me about best SDK and some reference. i have done some googling from there i found that UNITY will be ...
0
votes
1answer
53 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 ...
-1
votes
0answers
43 views
Angular Displacement of Object [closed]
I right now developing this theme based game.Ragdoll Cannon
So I have to create fire ragdoll at specific angle.But this thing not worked for me. When I change angle of the ragdoll it change but each ...
1
vote
2answers
67 views
Repeat image on a fixed background, Cocos2D?
I'm quite new to Cocos2d, does anyone know how to create a background that would be one fixed screen (no scrolling), with a small image just repeated to the whole size of the screen - depending on ...
0
votes
0answers
42 views
cocos2d - exclude GUI layer transformation
I have a game layer that should be pannable and pinchable and a GUI layer as an overlay that's excluded from the transformations. I added the pinch and pan gesture recognizer to the view and set the ...
-1
votes
0answers
49 views
Android Cocos2d - game crashes on device with different screen sizes
I have a game I'm building on android using cocos2d version 1-0. For most of the development I've been testing on my Galaxy Note 2 with a 5.5" screen. However when I tried testing on a smaller device ...
-3
votes
0answers
101 views
what engine do i select? [closed]
Our company wants to create a 2D game for IOS, Android, Mac, Windows and Linux devices. We are confused about selecting a game engine, i suggested the Cocos2d-X, another agreed with MonoGame or Unity! ...
1
vote
1answer
65 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 {
...
0
votes
0answers
52 views
Cocos2d Vertical Doodle-Jump Like Scrolling [duplicate]
Good afternoon,
For the past few days I've been making a game very similar to DoodleJump in the sense that it involves a main character, things to jump on, certain powerups and some monsters.
I've ...
0
votes
0answers
87 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
votes
0answers
57 views
Line Drawn using CCSprite is Close or Open [closed]
User can draw any shape on screen,
Drawing Line Using CCSprite
-(void) ccTouchesMoved:(NSSet *)touchess withEvent:(UIEvent *)event
{
UITouch *touchMyMinge = [touchess anyObject];
...
1
vote
1answer
58 views
Preserving Cocos2D context between UIKit screens
My app is designed to use Cocos2D in the "main game screen" but the rest of the screens are in UIKit. While I feel that this isn't ideal, I really don't have time to port the rest of the screens into ...
0
votes
0answers
28 views
Problem with the multiple polygon collision
I have created the heart body used the physics editor and it gave me the 3 polygons.I have multiple heart bodies that are spawing. When it collide with car body my application hang after some ...
0
votes
0answers
94 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 ...
-3
votes
0answers
45 views
Application Slow and hang when destroy body [closed]
my application hang when i destroy body i am using 2 shapes both are polygon i used the physics editor. I think collision call twice thats way my application hang or crash.
Could you please help me ...
0
votes
0answers
23 views
Check duplicates in the removeList in box2d iphone
sometimes a collision is called twice in that case i need to be check duplicates from the removeList. because of this my application is getting crash or hang.
How can i check duplicates in the ...
0
votes
1answer
199 views
3d transformation of game world keeping gameplay 2d - COCOS2D 2.0
Using: COCOS2D + iOS.
I want to rotate the game world, may be loading another .tmx file for another dimensions when user want to switch dimension.
the effect what I am looking for is something like ...
-1
votes
1answer
95 views
Parallax With Box2d iphone
I am creating the simple game. In that game car will move and obstacles will come in the car way we will have to save that car from that obstacles.
What I have done. I have created the car with the ...
1
vote
2answers
210 views
8-bit Game: To pre-scale images, or post scale my Cocos2d scene. Which is the better approach?
I'm wanting to develop a game with an 8-bit feel. Since this game is mostly for my personal enjoyment, I've set a requirement that I want my game to have an 8-Bit feel to it that is most similar the ...
0
votes
1answer
181 views
How to create Elastic rope / Rubber band in box2d?
I am trying to create the rubber band type or elastic rope.
i ant to do something like bellow link.
http://heyalda.com/smash-turtle/
Thanks,
0
votes
1answer
99 views
Remove HUD from Child Scene
For my game, I create game scene for which I set HUD to it.
First my game scene use BoundCamera, so I use hud to set score text, dollar text and setting button.
Now on game scene when I touch on ...
-1
votes
1answer
57 views
How to create strength meter?
I am creating game like bow and arrow. I want my hero will shoot the arrow with the strength meter, how will create the power?
2
votes
1answer
127 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 ...
1
vote
1answer
119 views
Need a bounding box for CCSprite that includes all children/subchildren
I have a CCSprite that has CCSprite children, and those CCSprite children have CCSprite children.
The contentSize property doesn't seem to include all children/subchildren, and seems to only work for ...
1
vote
1answer
83 views
How to execute AI in Cocos2d (replacing the Update method)
What is the best way to run AI in Cocos2d?
I already have my AI implementations. Normally I would execute AI in my game loop by checking how much time has elapsed since last AI execution and whether ...
1
vote
1answer
157 views
Game design and SoC
I've been working on a little game for the last few months, trying to approach it as a software engineer and employ best patterns and practices in my coding. I have gotten to the point where I have to ...
0
votes
2answers
60 views
Can CCAnimations be paused?
I am new to cocos2d. I am using CCAnimation. It's working fine, except I want to pause the animation occasionally. How do I do this?
Here's what I'm doing so far:
[mySprite ...
1
vote
1answer
65 views
Blending transition in cocos2d
In my cocos2d-iphone game, I have 2 backgrounds (CCnodes), each containing a quite complex hierarchy of sprites.
I would like to make a smooth transition between them:
initially, only the first ...
3
votes
2answers
171 views
Presenting game center leaderboard
I have the following code:
-(void)showLeaderboard {
GKLeaderboardViewController *leaderboardController = [[GKLeaderboardViewController alloc] init];
if (leaderboardController != NULL)
{
...
0
votes
1answer
159 views
Integrating game center into cocos2d
I have a Cocos 2d game in which I want to have achievements and a leader-board. What are the steps I would need to take?
Thanks
P.S All of the tutorials I have found are outdated. So please write ...
2
votes
0answers
92 views
How to achieve 'forward' movement (into the screen) using Cocos2D?
I'm interested in creating a 2.5D first-person shooter (like Doom) and I currently don't understand how to implement the player moving forward. The player will also be able to browse around the world ...
2
votes
0answers
78 views
How to use a mask texture with Kobold2D
I am an iOS developer but I'm new to cocos2d. I'm working on new game, I use Kobold2D, have cocos2d installed too, and I want to make this effect:
I know how is done with Flash, but can't make it ...
3
votes
1answer
161 views
GUI device for throwing a ball
The hero has a ball, which shall be thrown with accuracy in a court on iPhone/iPad. The player is seen from above, in a 2D view. In game play, the player reach is between 1/15 and 1/6 of the height of ...
-2
votes
1answer
339 views
The best way to structure/design game code [closed]
My question is quite broad and related to the 2D game code design/architecture/structure.
Usually the main game consists of the main loop where you update & render your world states.
However, ...
2
votes
2answers
154 views
Importance of scripting engine at Cocos2d Game Engine
Each Game Engine is different and solves different problems in different ways, so the engine design does vary greatly from engine to engine (even though a lot of principles are shared from engine to ...
0
votes
0answers
118 views
cocos2d fragment shader transparency
I'm playing with custom fragment shaders for a CCSprite (see http://www.raywenderlich.com/4428/how-to-mask-a-sprite-with-cocos2d-2-0).
But I can't figure out why I get a white color whith the ...
2
votes
1answer
139 views
Side scroll game with 8000xScreen_Height, which technique is best
I got one new requirement for iOS side scroll game with screen size : 8000xScreen_Height
For this, tileMap is best or normal texture based is best? I need to use parallax background too.
Help me to ...
0
votes
0answers
145 views
Cocos2d Tiled Dynamic Object Layer
I'm trying to develop a cocos2d tiled based game using a sort of 'dynamic' object layer. What I want to do is after the tiled map is loaded, the user can drag something into the map and that will ...
2
votes
1answer
138 views
cocos2d/OpenGL multitexturing problem
I've got a simple shader to test multitextureing the problem is both samplers are using same image as their reference.
the shader code is basically just this :
vec4 mid = ...
0
votes
2answers
124 views
Crash due to removal of Elements like CCSprite from NSMutableArray
So, here's how it goes.
I am currently working on Cocos2d game, which consists of many Obstacles. One obstacle gets added on the screen at an interval of 10 seconds like this.
ObstacleSprite* ...
12
votes
4answers
521 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 ...
1
vote
0answers
299 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
216 views
How to fly enemies like galaxian game enemies?
I am developing game like galaxian and using cocos2d with box2d .I don't have idea how to create enemies like galaxian game enemies and how do they fly over the screen.
...
2
votes
2answers
237 views
Separating UI and logic in Objective-C at iOS based Games
How to separate UI and logic in Objective-C based mobile games?
To develop games, I use Cocos2d library.
I need a good reference to separate my UI code from game logic code.
0
votes
0answers
70 views
using lua in kobold2d to control parameters
Is there a tutorial on using LUA in Kobold2d?
I want to know if its possible to use it to control the game behavior (like max speed decrease of timer, and bonus points) by uploading a new script to ...
2
votes
1answer
192 views
How to get all child with same tag from CCLayer?
Actually i am working with cocos2d Game. I am using CCLayer for particular scene. now there are so many buttons means CCMenuitems are available. I want to disable that all menuitems having same tags.
7
votes
2answers
455 views
What is the correct way to implement hit detection with non-rectangular sprites?
What is the correct way to implement hit or touch detection for non-rectangular sprites in Cocos2d?
I am working on a jigsaw puzzle, so our sprites have some strange forms (jigsaw puzzle bricks). As ...
1
vote
1answer
472 views
use of undeclared identifier 'GL_TEXTURE_COORD_ARRAY'
Anyone please help me .i am working on sneakyjoystick class when i import these class some error are identified they are following :-
use of undeclared identifier 'GL_TEXTURE_COORD_ARRAY'
use of ...