Tagged Questions
-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 ...
2
votes
1answer
66 views
Bodies do not stay sticked together by joint in retina display
I'm rehearsing on Box2D revolute joints. Everything's going pretty well except for one thing. For some reason bodies joined together with revolute joints do not stay sticked, they start getting apart ...
0
votes
0answers
46 views
Cocos2d/Box2d Component based entity system
Recently I've read somewhere that it is not a good idea to inherit from CCSprite class when making your game objects. In my CBES each Game Object has :
-PhysicsComponent(responsible for updating ...
6
votes
0answers
118 views
How do I get the compression on specific dynamic body
Sorry, I could not find any tag that would suit my question.
Let me first show you the image and then write what I want to do:
I'm using box2D. As you can see there are three dynamic bodies ...
2
votes
1answer
405 views
Directional Lights
I'm working on a game idea (2D) that needs directional lights. Basically I want to add light sources that can be moved and the light rays interact with the other bodies on the scene.
What I'm doing ...
0
votes
0answers
55 views
limiting a sprites movement after a mouseJoint is released
I have created a weldJoint between two sprites and I also created a method (spritePositionRelease) that returns the exact position of a sprite when a mouseJoint is released. I want to track the ...
-2
votes
1answer
506 views
How change the size of sprite in cocos2d?
I want to change the scale of sprite like a paper in 'Paper Toss' game.
'Paper Toss' is the game is available on the App store. I want to make a sprite like a paper and change the scale of sprite ...
4
votes
1answer
351 views
Cocos2d: Tongue effect like in Munch Time
I'm wanting to do a tongue effect for my character like the one in Munch Time( shown in pic ). The player does some action and his tongue attaches to the nearest platform.
I'm thinking this is ...
0
votes
1answer
1k views
How to simulate a water splash effect?
I need to achieve the effect of a ball falling down into a pool then splashing in the water.
At first, I made a sensor to detect the collision between the ball and the water and then show the sprite ...
1
vote
3answers
919 views
Include Box2D libraries to a cocos2d project (iOS)
I have a problem including box2D to my cocos2d project. I've tried different ways to do it with no success. This is what I've done:
I downloaded Box2D (Box2D_v2.2.1) to my project directory.
Dragged ...
2
votes
2answers
584 views
Efficient Bullet Firing Class
I've been struggling with this for a while. I have been trying to create a bullet pool class for a game I have made that doesn't cause a significant fps drop.
I have tried creating a bullet pool ...
2
votes
1answer
516 views
Moving a big set of box2d bodies in an iOS endless side-scroller game (such as Canabalt)
I am working on an iOS endless-running game (Robot Unicorn, Canabalt, etc). I'm using box2d for the Physics and Collision Checking and cocos2d for graphics.
To achieve the notion of an endless level, ...
5
votes
4answers
865 views
How to port a game from IPad to Iphone
I just finished developing a 2D side scroll game for the IPad using Cocos2d and Box2d.
Now we want to make an IPhone 4 version of the game, but I'm still not sure what is the best way to do it.
I ...
5
votes
2answers
2k views
Physics or Time-Based Animation In Corona SDK (iOS) Using Box2D
I am part way through creating a Doodle Jump clone for iOS using Corona SDK. I'm currently using the physics engine (box 2D). It's not a straight clone, but I need the basic principles in place to ...
1
vote
0answers
155 views
Which is the best model to present the destruction of the building in Box2D?
We'd like to create a "world-destruction" game. The problem is in choosing the best model for building destruction.
On my mind the building would be an array of objects( tiles). Each object would ...
0
votes
0answers
828 views
Multiple spawned objects on collision - Corona SDK
Please help! I'm trying to spawn 5 balls one by one from the sky and have them disappear as soon as they hit the ground or when they hit another user-controlled object that's on the ground. The good ...
1
vote
1answer
658 views
Bodies are colliding but refusing to rotate in Box2D
I'm running box2d in C++ and hooking it up to C# via p/invoke. All physics stuff occurs in C++.
My problem is that bodes know when they are colliding and do so with great precision. However if I have ...
