Questions tagged [box2d-iphone]

Box2D is a physics engine created by Erin Catto. This tag is similar to the box2d tag in that it is more specifically aimed at iOS development.

Box2D is a physics engine that is particularly popular among Cocos2D developers when developing a game for iOS devices. It is fairly fast and easy to use. More information can be found on its official website:

Box2D.org

For more information on Cocos2D (iOS) see:

Cocos2D-iPhone.org

410 questions
-2
votes
1 answer

How to run two animation at same time at same sprite?

In my game, I am running two animations using CCSpawn but it shows only one animation at a time. What is wrong here? Here is my code. [[CCSpriteFrameCache sharedSpriteFrameCache] addSpriteFramesWithFile:@"walkcycle.plist"] ; CCSpriteBatchNode…
Gaurav
  • 721
  • 5
  • 14
-2
votes
2 answers

how to check which side of enemy hit a player sprite scene created using level helper

i developed a scene in levelHelper software. But now i am stuck in the part that how to check that player/hero sprite is hit with the enemy which part like is it hit from up,down,left,right. I want to do this b/c i want the player to die when it hit…
-3
votes
2 answers

getting some warnings on cocos2d can any body tell me how to solve these

i developed the game using levelHelper game is working fine but i am getting some error or some kind of warnings in the logs which are 2013-03-07 12:59:59.744 RobotRunner[3970:c07] cocos2d: ** WARNING ** CC_ENABLE_GL_STATE_CACHE is disabled. To…
-4
votes
1 answer

swipe and jump effects in iphone gaming with cocos2d and box2d

I have a question.How can I achieve the jumping up and down effects (swiping left and right effects too.) in iphone gaming using cocos2d and box2D just like in temple run and subway surfers apps.Any ideas would be appreciated.
jessy
  • 491
  • 3
  • 7
  • 19
-12
votes
2 answers

Why the float variable is always 0 even though i have changed its value

I met two interesting issues today.Below is what i did in my coding 1.In .H file,I declared a float variable "currentPer" and a CCProgressTime variable "_strengthBar" 2.In UIPanGestureRecognizer's call back function "processPanGesture()",I…
Chailie
  • 451
  • 2
  • 11
  • 24
1 2 3
27
28