Questions tagged [cocos2d-iphone]

cocos2d for iPhone is a free open-source framework for building 2D games, demos, and other graphical/interactive applications for iOS devices.

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 macOS. It is a port of the original Python-based cocos2d framework.

Tutorials, programming guides, and detailed API documentation can be found at these sites:

329 questions
5
votes
2 answers

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 { //NSLog(@"%f",[GameScence…
saturngod
  • 151
  • 1
  • 5
4
votes
3 answers

Jumping a sprite while moving in a Bezier action

I'm creating a game and I need the sprite to jump (move up and down basically) while it's moving on a bezier path so it moves vertically while it still follows the path. If I do this while it's moving along the bezier path: [mySprite…
marcg11
  • 425
  • 1
  • 9
  • 22
3
votes
3 answers

What is actually loaded during a game's loading screen?

I am at the stage of my game where I have to develop the loading screen. It's actually already there, but I don't know exactly what it should be loading while it's presented. Why would I have a loading scene instead of just going directly to my game…
user31088
2
votes
2 answers

How to create array with unique sprites? in cocos2d iphone

I write the code like this. This displays only one sprite (red colour bubble) with number of times and moving down, but actually I want to display different sprites (different colour bubble) every time and moving down. I also add no of .png images…
prakash s
  • 21
  • 1
  • 3
2
votes
1 answer

CCsprite.flipX not working!

Here is my function, it makes random point on the ground and makes my sprite go there. If the x position of location is less then position of my sprite, I flip my sprite so it looked left (it looks right by default). But this is not working at all.…
Dvole
  • 1,865
  • 2
  • 19
  • 23
2
votes
0 answers

How to create fun and interactive menus with cocos2d?

Possible Duplicate: How to make animated buttons in a menu with Cocos2d? How do I make fun and interactive menus with cocos2d, all the tutorials are just for simple clickable menus. Can any one help me learn this? It would be see the menu flip or…
David Holmes
  • 189
  • 2
  • 8
1
vote
1 answer

CCTMXTiledMap continuous scrolling;

I have a vertical shooter, the game scrolls TMXTiledMap, and when it runs out I want it to load next map and scroll them seamlessly without interruption. How do I achieve that? Here is my scrolling method, if I load another map it stops, I need to…
Dvole
  • 1,865
  • 2
  • 19
  • 23
1
vote
1 answer

How to make and correctly use progress bar in cocos2d-iphone?

I have a game that uses a progress bar to inform player of level of certain stats of the player. For example hunger, when it starts at zero and slowly adds up to maximum bar. When he eats the hunger reduces. I tried implementing as progressBar, but…
Dvole
  • 1,865
  • 2
  • 19
  • 23
1
vote
1 answer

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 0, another for 1 and another for 2. First i…
Dvole
  • 1,865
  • 2
  • 19
  • 23
1
vote
1 answer

animation in Rhythm game similar to Jubeat Plus

For a school assignment I am planning to make a game similar to Jubeat Plus on the iPad. Right now, I have a counter that gives me each 16th note of a beat, I am reading out a Property List where I defined the time of each button when it should be…
user729053
  • 147
  • 1
  • 5
1
vote
0 answers

How do I transition a cocos2d scene to a UiViewController?

My project is a cocos2d game project, but I added a UIViewController for the initial log in. The first scene is the splash logo, followed by the menu screen, but I need to pass to my UIViewController instead of my menu screen. I've tried lots of…
ICoder
  • 111
  • 2
1
vote
1 answer

CCLayerColor gets black when pushed onto the current scene

In my cocos2d iphone project I have one major layer, the game layer. When the user presses the pause button the scene is paused and another scene is pushed onto it, the pause scene. [[CCDirector sharedDirector] pushScene:[PauseLayer node]]; I…
DarkLeafyGreen
  • 239
  • 1
  • 8
1
vote
3 answers

What is the best way to learn Cocos2D?

I've messed around with iPhone development for a couple years now. I've done some contract work. I want to get into Cocos2D to develop a game idea that I have. I was wondering what might be the best/quickest way to get up in running in cocos2d?…
Joey Green
  • 2,509
  • 4
  • 26
  • 46
0
votes
1 answer

Stop schedule on gameOver

I have 2 events running through time in my game. I want that when gameover starts, this events stops running This is my code: - (void)onEnter { [super onEnter]; [self schedule:@selector(addStars:) interval:1.5]; [self…
0
votes
2 answers

Game over pop-up like Flappy Bird

How can I make a game over pop-up like Flappy Bird in cocos2d-iphone 3? I tried to add a new Scene, but it adds a new screen on the game, I just want a rectangle with some buttons inside it. I also search how to add multiple scene, but didn't find…
1
2