cocos2d

Does anyone have a working example of ParticleExplosion in Cocos2d?

I'm new to iPhone development and I'd really like to see a working example of this particular effect. Thanks in advance. ParticleExplosion ...

What's the most efficient way to create particles on the iPhone.

I'm looking to create a snowfall effect on the iPhone and I'm looking for advice as to how to best implement this. I've planned to use a png image as the sprite. ...

use more then one sound in my iphone application using cocos2d

avc = [[MPAVController sharedInstance] avController]; //avc is AVController NSString *path = [[NSBundle mainBundle] pathForResource:@"Sound" ofType:@"wav"]; id feeder = [[MPArrayQueueFeeder alloc] initWithPaths:[NSArray arrayWithObject:path]]; [avc setQueueFeeder:feeder]; [avc play:nil]; [feeder release]; NSTimer *sound =...

Is it possible to use UIPickerView in cocos2d?

hello, I am developing iPhone 2d game by using cocos2d. I need a Picker. Is it possible to use Picker in cocos2d ! If possible then tell me, How can I use a Picker in cocos2d ? ...

How can back to scene from view?

Ques: I had added the view using the code: [[[Director sharedDirector] openGLView] addSubview:myView]; But how can I will back to Game scene? if you are asking how to attach UIKit views and such to a cocos2d-iphone project, you just have to do it like: [[[Director sharedDirector] window] addSubview:myView]; Updated to cocos 0.7 and...

How can I implement "Drag" option in cocos2d ?

hello, I trying to develop a game for iPhone by using cocos2d. I need DRAG option in cocos2d. Is it possible to implement drag option in cocos2d ? ...

How can i use picker view in iphone application using cocos2d ?

I am working on a project ( Slots Game ) using cocos2d. I need to add picker view to rotate the reel ( image chain ). But i can not doing this rotation.If you have a solution for this please give me the instruction that how can i do this using picker view or without picker view. Please ans me with help instruction. ...

Layer vs Scene in Cocos2d for iPhone game development

Using cocos2d for iPhone game development, I am confused between Layer and Scene. For example, My simple game have several "UI Pages" like main menu, highscores, game board etc. So should I use Layer or Scene for every "UI page", and why? ...

How can i use more them one sound simultainiously in iphone application using cocos2d ?

Duplicate: use more then one sound in my iphone application using cocos2d Hi, All of the member of this forums.I need to help yours for doing my game project.I want to play some sound in my gaming project.When this game is started a background sound is playing continuously until the game is stop (exit). When game is played that tim...

How do we capture left move and right move using cocos2d?

How do we capture left move and right move and top move event using cocos2d? I am taking one sprite(car) and if I move left it should move to the left on screen and to the right if you move to the right. ...

Freezes application in button action

I doing a game application using cocos2d.In this application two game are include together. When playing game i include a action for switching the game. when i use this button two or three times change the game but after that the game is freezes & not work any more until the game is close the game. If anyone have a solution than give me ...

How do you animate in Cocos2d???

I am trying to animate a sprite. The cocos2d website makes it look so easy but everytime I try it I get errors. I managed to download some code to get it working but one sprite animation takes 6 files. I have a character that needs to walk right and left, jump, climb, and fall. That means I am looking at 35 files. can't it be streamlined...

How can I test my own application in ipod touch and iphone?

Hi, I have some iphone application that I created. I want to test my application in ipod touch. How can I test my application in ipod touch? Now I have no Apple id my own. If I open an id then how many applications can be tested with that id? If you have an available solution then please give me the answer and help me. ...

How can I detect touch in cocos2d ?

I am developing a 2d game for iPhone by using cocos2d. I use many small sprite (image) in my game. I want to touch two similar types of sprite(image) and then both sprite(image) will be hidden. How can I detect touch in a specific sprite(image) ? ...

Can i use pickerview in my iphone application using cocos2d ?

Duplicate: How can i use picker view in iphone application using cocos2d ? Hello everyone i am working on iphone gaming project.In this game i want spin some image (like reel spin).But i can not do this.Can i use picker view in this application using cocos2d.If can then give some instruction how can i do that or any different solut...

Is it possible to use pickerview in cocos2d ?

Duplicate: How can i use picker view in iphone application using cocos2d ? Is it possible to use pickerview in iphone application using cocos2d ? If possible then can i do that in my application.Where i can get this information.If not then what are the other solution for doing this in pickerview. ...

Can i display a portion of an image in iphone application using cocos2d ?

I want to display portion of image not to display the total image.At first display the full image but after a delay time display the a portion of this image. I can not understand how can i do this. Like we can display portion of text by fixing the dimension of Label.But in case of image how can i do that using sprite or other. ...

iphone semulator loading problem ?

I develop a iphone application using cocos2d.But after including the sound file a loading problem is found. I am not understand why the problem is occur. I send link an image(get from consol).In this image the error is showing. link text ...

iPhone cocos2d sprites in array, memory problems

I'm trying to keep track of my sprites in an array, add and remove them from layers, and then finally clear them out of the array. I'm using the following code: Sprite * Trees[50]; Layer * Forest; Forest = [Layer node]; Forest.isTouchEnabled = YES; [self addChild:Forest z:30]; // do this a bunch of times Trees[0] = [[Sprite spriteWi...

How can i rotate an arrow image by touch on that image ?

I am working on a project where i need to rotate an image by touching it. It can be rotate faster or slower depending on how the user touches it. Can you show me some tutorials or how this can be done? ...