cocos2d for iPhone is a free open-source framework for building 2D games, demos, and other graphical/interactive applications for iOS devices.
-1
votes
0answers
22 views
Applying the vector of a swipe movement to a box2d object
Hi I'm trying to achieve game functionality where the player can place their finger on an object then swipe in a certain direction and apply the speed and velocity of the swipe to the object they have ...
1
vote
4answers
112 views
Timing - use individual timer for every task or global timer?
I'm writing a game, where a player controls a spaceship.
It regenerates energy over time. So I need to make a little timer that adds certain amount of energy to the pool per second.
My enemies also ...
-1
votes
0answers
31 views
How to make askew slope image(b2body) in Box2d?
I am new in Box2d and learning myself. I am learning Box2d from here http://www.box2d.org/manual.html#_Toc258082972
I want to make a body and want to give b2body a angle so that it will look like ...
-1
votes
0answers
25 views
Flip irregular shaped image in iphone [duplicate]
I need to implement flip effect for an irregular shaped imageview. Any help would be highly appreciated.
0
votes
1answer
17 views
Calling CCRepeaForever on CCLabelTTF Makes Label Not Show Up
I have a CCLabelTTF in the top right hand corner of the view.
-(void)scrollScoreLabelAndMonkey{
scoreLabel = [CCLabelTTF labelWithString:@"0000" fontName:@"Marker Felt"
fontSize:30 ];
...
0
votes
0answers
62 views
creating arcball in cocos 3d [closed]
I am trying to make arc ball sample in cocos 3d , the code seems to be ok, but the rotation of ball is not as expected
it seems that i've done something stupid, but i can't figure it out. please check ...
0
votes
1answer
59 views
Cocos 2d move CCsprite in array of points [closed]
I need a CCsprite to move to the points in my array those points will form a circle.I know to move CCsprite but my app crashes when i make it to move in array of points. Help me where i am making ...
0
votes
0answers
35 views
Catching an object from sky in Cocos2d and Box2d world
My world has a gravity of -9.8 and there are KDynamicBodyType bodies falling from the sky. At the bottom there is a PhysicsSprite with KinematicBodyType. I want the PhysicsSprite to be able to catch ...
0
votes
1answer
20 views
Set texture of a LHSprite that is loaded from LevelHelper
How do i set the image/texture of an LHSprite that is loaded into xCode using levelHelper & spriteHelper?
I am using sprite sheets. So i tried to load the image the old fashioned way using ...
-2
votes
0answers
29 views
What to choose? [closed]
I am so stuck on what to choose, I want to create a game like vector (run and jump game with multiple levels)
From what I've read i may use:
Kobold2D
Cocos2D w/ Box2D (which involves learning a bit ...
-1
votes
0answers
46 views
How to move a PhysicsSprite
I'm trying to move a PhysicsSprite from left to right based on where the user clicked.
I understand that a simple Sprite can be moved by MoveTo functions but what is a way to move a PhysicsSprite? ...
0
votes
0answers
72 views
Help with ball movement and rotation in Box2d [closed]
I am trying to learn box2d in cocos2d. I have searched for online tutorials and ray Wenderlich's seem to be the best ones!I am learning in a slow but steady pace! I am currently developing an app in ...
0
votes
1answer
118 views
Projectile immediately intersecting with target
I have a fairly simple and somewhat cookie cutter method for testCollisions: (FYI: BasicProjectile is a CCNode with a CCSprite member).
for (BasicProjectile * basicProjectile in ...
0
votes
0answers
26 views
How to implement enemies similar to Monster shooter game in cocos2d? [duplicate]
We are recently creating game with cocos2d API. This game is similar to Monster shooter game for iOS and android. Following is the link to above game : http://game-lion.net/monstershooter/
In this ...
1
vote
1answer
107 views
opengles display human face in iphone and animate it?
I need to make a human 2D face to 3D face.
I used this link to load an ".obj" file and map the textures. This example is only for cube and pyramid. I loaded a human face ".obj" file.
This loads the ...
0
votes
0answers
68 views
cocos2d Move Sprite using buttons [closed]
Using CCMenu I have create Two Buttons Up and Down Here is the code
CCSprite *normlUp = [CCSprite spriteWithFile:@"Up.png"];
CCSprite *selectedUp = [CCSprite spriteWithFile:@"Up.png"];
...
0
votes
0answers
44 views
GetReactionForce().y does not show 0 even it has no weight
I have built a simple structure with static and dynamic bodies and revolute joints. None of the bodies have weight, I've set the density to 0. Here's the structure:
In screen update method I do ...
0
votes
0answers
70 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 ...
0
votes
1answer
129 views
Using depth buffer on a sprite
I am following this guide:
http://www.cocos2d-iphone.org/wiki/doku.php/prog_guide:tiled_maps
Trying to create a tiled map that also supports multiple layers. The guide says that a way is to use ...
1
vote
0answers
124 views
iOS cocos2d - sprite gets stuck in collision detection
I'm developing a top down game in cocos2d and I have collision code that checks collisions between enemies and the player so that they don't go through each other. The code seems to work but 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 ...
3
votes
1answer
105 views
Collision Filtering in Box2D
I have four bodies in my Box2D World. Each are polygon shape, with some physics parameters.
Now when the game start, I need one of the bodies from the World (BodyA) to not be allowed to collide with ...
0
votes
0answers
104 views
Detect Sprites, they are in Shape or Not which random draw in Cocos2d
I have searched a lot on web and found some of help ful links as exact my question.
Link 1 Link 2
But still i am not success to achieve this,
i have done some of code lines, as like draw line by ...
-1
votes
2answers
110 views
Move Sprite Up ad Down using accelerometer
my sprite can move up and down but some probs are there.......
sprite is moving slowly , i want some speed in moving the sprite
sprite is not continue move but jumping .....
sprite can not touch ...
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 ...
0
votes
0answers
106 views
Cocos3d-iOS: Need ideas for approaching a 3d app development
I am trying to develop a Cocos3d application, not a fame. This application is exactly same as flash view available in this link-> http://www.amfam.com/learning-center/my-home/interactive-home.asp and ...
0
votes
1answer
96 views
DPad style movement for AI without using A*
What is the easiest way to implement DPad style movement (No diagonal) for AI without using and A* algorithm? I thought about having the enemy catch up to the player in the Y axis first then the X ...
1
vote
1answer
64 views
TiledMaps and real objects
I'm creating a simple game for the iPhone using Cocos2d.
I'm having a hard time understanding how add real objects to a tiled map.
I know that you can add an object-layer to the tiled map and set the ...
0
votes
1answer
277 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 ...
0
votes
2answers
65 views
CCSprite as an iVar
So I built my first game app, and it was a lot of fun. I'm really trying to expand on some of the ideas, but I'm running in to some serious variable scope issue. What I want to do is encapsulate a ...
0
votes
1answer
167 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
vote
2answers
103 views
Cocos2d savegame cctmxtiledmap
my game features several tilemaps that are initially loaded from a tmx file and modified during gameplay.
How can I save the changed tilemaps in a save game? Will NSCoding do the trick here or is the ...
0
votes
1answer
132 views
Cocos2d patterns for simple texture management
I'd like to simplify the way I preload image resources in my Cocos2d based iOS apps. I've created a small object the just wraps a few of CCTextureCache's methods. It looks like this:
@interface ...
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
110 views
CCLabelTTF value is not updating (cocos2d)
i have two layers control layer which contains CCLabelTTF for score, and first layer in which i detect collision btwn my objects. i want to update score (i.e CCLabelTTF value) in control layer from my ...
1
vote
1answer
174 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 ...
0
votes
2answers
82 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
88 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 ...
0
votes
0answers
238 views
Cocos3d lighting problem
I'm currently working on a cocos3d project, but I'm having some trouble with lighting and I have no idea how to solve it. I've tried everything and the lighting is always as bad in the game.
The ...
3
votes
2answers
266 views
Presenting game center leaderboard
I have the following code:
-(void)showLeaderboard {
GKLeaderboardViewController *leaderboardController = [[GKLeaderboardViewController alloc] init];
if (leaderboardController != NULL)
{
...
0
votes
1answer
245 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
130 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 ...
0
votes
1answer
162 views
Alternatives to NSMutableArray for storing 2D grid - iOS Cocos2d
I'm creating a grid-based iOS game using Cocos2d. Currently the grid is stored in an NSMutableArray that contains other NSMutableArrays (the latter are rows in the grid). This works ok and performance ...
1
vote
0answers
150 views
Any Good Cocos2d Pause Menu Library [closed]
Background :
From http://code.google.com/p/cocos2d-iphone/issues/detail?id=173
Scenes/Nodes doesn't support the CocosNodeOpacity protocol.
From ...
3
votes
1answer
168 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 ...
1
vote
0answers
75 views
cocos2d event handler not fired when reentering scene [closed]
I am encountering a very strange problem with my cocos2d app. I add a sprite to the page and have an event handler linked to it which replaces the scene with another scene. On that page I have ...
2
votes
2answers
187 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 ...
1
vote
3answers
208 views
How to deal with Character body parts from Design to Cocos2d
I'm trying to figure out the pattern the game developers use together with game designers:
See the picture below with the independent parts:
Questions:
1) Should I create different image parts ...
-2
votes
1answer
213 views
How to develop a water fluid dynamics application? [closed]
I want to develop a Fluid Water Application on IOS which I can drop some colors and mix them. In which framework I can get more support? Which one is better?
3
votes
2answers
140 views
Is it possible exchange points between players using Game Center?
I want to create a turn based two player game. In my game in a certain stage if player 1 loses he must give few points that he have to the opposite player. The game is implemented with game center. Is ...



