Tagged Questions

cocos2d for iPhone is a free open-source framework for building 2D games, demos, and other graphical/interactive applications for iOS devices (iPhone, iPad, and iPod Touch) and Mac OS X. It is a port of the original Python-based cocos2d framework. Tutorials, programming guides, and detailed API ...

learn more… | top users | synonyms

0
votes
1answer
71 views

How do I manage the visibility of enemy spawn locations in a long scrolling shooter?

How do I handle the situation of an enemy spawn place being visible on a screen in a scrolling shooter? The tutorials I have seen are about setting all the enemies on a whole map only. But it is not ...
0
votes
1answer
38 views

Why set the position of both b2Body and Box2DSprite?

In a game, we add a body for each sprite, the method is: createBodyAtLocation:(CGPoint) forSprite:(Box2DSprite*)sprite In which we create the body and we attach it to the sprite in parameter: ...
0
votes
0answers
96 views

Animate cartoon like running water

I am trying to animate cartoon like running water and have tried quite a few different versions but is not able to make it look good. Color, flow etc. does not look good and also the size of the ...
0
votes
0answers
47 views

Player sprite moving slower on iPhone 4

I just finished getting movement/jump animation for a player sprite in Xcode using Cocos2D. The basic movement algorithm is a timer that updates every 0.01 sec, changing the sprite position to ...
-3
votes
0answers
36 views

Cocos2D job forums/boards [closed]

I recall seeing some forums where people could find Cocos2D developers. Can't seem to remember where. Where are there job boards/forums for Cocos2D developers?
0
votes
1answer
87 views

Should iOS games use a Timer?

No matter what frameworks we use -- Core Graphics, Cocos2D, OpenGL ES -- to write games, should a timer be used (for games that has animation even when a user doesn't do any input, such as after ...
0
votes
1answer
94 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 ...
1
vote
2answers
121 views

Basic game architechture best practices in Cocos2D on iOS

Consider the following simple game: 20 squares floating around an iPhone's screen. Tapping a square causes that square to disappear. What's the "best practices" way to set this up in Cocos2D? Here's ...
0
votes
1answer
49 views

Thread-safety in Cocos2d-iPhone?

After tinkering a bit with cocos2d, I discovered that there is no classic game loop and everything is more-or-less event driven. I guess I can wrap my head around that, no problem. But I cannot find ...
1
vote
0answers
41 views

Zoom Layer centered on a Sprite

I am in process of developing a small game where a space-ship travels through a layer (doh!), in some situations the spaceship comes close to an enemy space ship, and the whole layer is zoomed in on ...
1
vote
0answers
35 views

How do I control an animation with a drag command?

I want to play an animation when someone drags a sprite from it's default position to another selected position. If they drag half of the selected position then animation will be play half. For ...
1
vote
0answers
67 views

Cocos2d Application memory leaks on ipad but not on iphone

My app is perfect in iphone, I have no memory leaking. however if I build the app selecting as a device iphone on the ipad (you know, you get the option to resize x2), I get memory leaks at the start. ...
2
votes
3answers
141 views

How to achieve uniform speed of movement on a bezier curve in cocos 2d?

I'm an absolute beginner in cocos2 , actually i started dealing with it yesterday. What i'm trying to do is moving an image along Bezier curve. This is how i do it - (void)startFly { [self ...
1
vote
3answers
175 views

How do I save data to the iPhone properly and securely?

I'm creating a game using Cocos2D (objective-c) and it has come to the point where I have to save data to local storage, like high scores and similar stuff. I know that NSUserDefaults is not a good ...
0
votes
1answer
97 views

How do you maintain content size vs. content quality in an application?

I am developing my first Cocos2d iPhone/iPad game that includes quite a few sprites, I would need approximately 80 different. As this is for both normal and HD displays I have 2x of each sprite. I am ...

1 2 3 4 5 9
15 30 50 per page