cocos2d for iPhone is a free open-source framework for building 2D games, demos, and other graphical/interactive applications for iOS devices.
4
votes
1answer
802 views
How do I break an image into 6 or 8 pieces of different shapes?
I am working on puzzle game, where the player can select an image from iPhone photo gallery. The selected image will save in puzzle page and after 3 second wait the selected image will be broken into ...
5
votes
3answers
1k views
How to achieve uniform speed of movement on a bezier curve?
I'm trying to move an image along Bezier curve. This is how I do it:
- (void)startFly
{
[self runAction:[CCSequence actions:
[CCBezierBy actionWithDuration:timeFlying bezier:[self ...
8
votes
2answers
1k views
How to create 2D game terrain?
Last month, I experimented a lot in game development using cocos2d for the iPhone, especially on moving and modifying sprites. However, vertices and polygons are still new stuff for me.
I developed ...
5
votes
2answers
2k views
How to make animated buttons in a menu with Cocos2d?
How do I make animated menus with cocos2d, I just want to animate the buttons and not the entire scene. Effects I look for is flipping buttons (like the back of the button is the next menu), buttons ...
7
votes
1answer
2k views
Basic Box2D collision detection
I don't understand how to listen for collisions in Cocos2D/Box2D. Say I have two dynamic circle bodies. One is very small and the other is relatively large. When the small circle collides w/ the ...
5
votes
2answers
1k views
How to make Snake Body in Snake Game?
I'm new in cocos2d and game dev. I'm still learning in game dev. My goal is to make one game like Doodle Grub. But problem is snake body. I wrote like following
-(void)update:(ccTime)delta
{
...
3
votes
2answers
306 views
Creating 2D waveform for Cocos2d game
I'd like to have a Waveform in my iPhone game that I am developing using Cocos2d v2.0.
That's the ideal wave I'd like to achieve. A simpler wave which I would still be happy with is this one.
...
1
vote
1answer
603 views
What is the correct way of changing image of existing CCSprite?
How do I correctly change sprite to show another image? Or to have another texture?
This is the way I do it now. When I need to change sprite image I increase state variable. So i have one picture for ...
1
vote
2answers
250 views
How can I make a rectangle to an irregular shape?
I used masking for breaking an image into the below pattern. Now that it's broken into different pieces I need to make a rectangle of each piece. I need to drag the broken pieces and adjust to the ...
1
vote
1answer
997 views
Making an object swing from one rope to another
I am trying to make a Tarzan like game with Cocos2D and Box2D. I am having issues with the physics - making an object swing from one rope to another. I am not really sure how to do this. Could anyone ...
1
vote
1answer
933 views
How to animate a flip of a card in Cocos2d?
I am working on a card game and would like to ask if someone could advice me how to implement a flip of a card in Cocos2D?
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 ...
0
votes
2answers
848 views
Top down water view, cocos2d
Has anyone successfully created a top down view of a stream/river? I need to also work out how to make it look like a boat is cutting through the water.
