cocos2d is a free open-source framework for building 2D games, demos, and other graphical/interactive applications.
0
votes
1answer
363 views
Store and create game objects at positions along terrain
I have a circular character that rolls down terrain like that shown in the picture below.
The terrain is created from an array holding 1000 points. The ground is drawn one screen width infront and ...
1
vote
1answer
1k views
How to animate the sprite along with action in Cocos2d?
Cocos2d-android - I have an animation which has 5 Frames they are close cropped images. Now I want Sprite to do animation as well as Move in X direction.i.e. I have a player running which gets ...
1
vote
2answers
410 views
Custom Fonts in cocos2d
I have tried Hiero but it has NEVER worked for me. Is there an alternative application for creating fonts for cocos2d?
Thanks
1
vote
1answer
442 views
Running one action on multiple sprites simultaneously
I have created a spiraling animation for a football. I want to be able to run it on 2 sprites simultaneously.
This is what I have done:
CCAnimation* footballAnim = [CCAnimation ...
1
vote
1answer
319 views
Cocos2d particle system
I have a fire particle emitter in my project and I have it following a football. My goal is to make the football look like it is on fire but the problem is when I add it to the screen it can only be ...
6
votes
1answer
451 views
Puzzle game: clipping of non-convex polygons on the figures
I have an original figure in the SVG file. I need to break it randomly on parts, an example of which is specified below:
I have an idea, to use for partitioning Voronoi diagram (Fortune's algorithm). ...
-3
votes
1answer
169 views
Simple question about a cocos2d based game template
I am learning a cocos2d based Game template tutorial from here and now I am at this point of the tutorial. My question is, how can i run 30 different scenes in 30 different levels of 5 chapter? Now I ...
4
votes
1answer
322 views
Organize a game set
I'm developing a endless running game and I'm not really sure on how to make the set. The first approach was to make a BIG set like 10240x3072 pixels so that we have a nice portion of set. After ...
0
votes
1answer
357 views
what is the difference between CCSprite and a PhysicsSprite?
I am new to Cocos2D and I've realized that most of the codes written before the Cocos2d update used CCSprites. Recently I realized a lot of more recent codes after the update are using PhysicsSprite. ...
-4
votes
1answer
352 views
“Null Pointer Exception” Animating sprite in cocos2d android [closed]
I am converting this monkey jump game tutorial in android. I have done til monkey sliding right to left and left to right but I am stuck in the part of monkey walking animation. I have tried but ...
1
vote
0answers
179 views
Cocos2D and iPhone's accelerometer
good afternoon!
Today I've started to develop a game and I got a trouble. So, first at all I would like to say that I have no experience developing games...
So, I've a CCSprite in the layer and I ...
0
votes
1answer
376 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 ...
1
vote
2answers
439 views
CCSpriteFrameCache: Frame '%s' not found
I have just started using the Cocos2D library for Android. I am trying to make a walking bear animation.
For that I am using a CCSpriteFrameCache, but I'm getting a "frame not found" error in the ...
1
vote
1answer
1k views
Best way to create a level editor in java
I am creating an iPhone game using cocos2d + box2d that needs a lot of levels. My friends and I are creating the game and most of them have no programming experience and end up with nothing to do. I ...
1
vote
3answers
406 views
How to expose game data in the game without a singelton?
I'm quite new to cocos2d and games programming, and am currently I am writing a game that is currently in Prototype stage. Everything is going okay, but I've realized a potentially big problem and I ...
-1
votes
1answer
144 views
How to integrate ad mob ads in cocos2d android portal?
Could anybody tell me how to integrate ad mob ads in my cocos2d android app.
1
vote
2answers
2k views
How to make game sessions like “with friends” games?
I want to make a game like "words with friends" or "chess with friends" or "Draw Something" or any of the other online multiplayer type games that are based around friends having game sessions with ...
0
votes
2answers
650 views
Cocos2d: Adding a CCSequence to a CCArray
I have a problem with an action performed by a sprite. I have one CCSequence in a CCArray and I have an scheduled method (is called every 5 seconds) that make the sprite run the action. The action is ...
1
vote
2answers
1k views
Problem using ccTouchesEnded/ccTouchesBegan to move sprite in cocos2d-x?
I'm using ccTouchesBegan/ccTouchesEnded to move sprite from one point to another but I'm having problem, if i give two or more consecutive inputs one by one while sprite is moving(runAction is being ...
2
votes
2answers
517 views
Importing a windows project into android using cocos2d-x
What I am trying to do today is to import a full project to Android, but no tutorials are available for that that I have seen. My approach was to create a new android project, copy all the classes and ...
1
vote
2answers
3k views
Create an infinite scroll using CCParallaxNode in Cocos2D-X
I'm trying to create an infinite scroll using two images in a CCParallaxNode, making one move to the end of the scroll when it gets off the screen. I have tried several implementations but none has ...
2
votes
0answers
563 views
Opening URL in browser using C++ with cocos2d-x in iOS [closed]
I'm banging my brain against the wonderful lib xport that is cocos2d-x from the original cocos2d iOS library.
What I want to ask is how to open a web link in the safari browser? I don' know how to ...
0
votes
0answers
271 views
Which game engine is more worthwhile for mobile game development [closed]
I have been thinking of starting to learn mobile game development. I recently learned that there are three popular game engines available for android:
AndEngine
cocos2d-android
libGdx
you guys ...
5
votes
1answer
1k views
Creating an isometric map with hexagonal tiles for iPad
I'm new to game development, so I need a little help.
I have to write down a little game which has a floor with hexagonal tiles but it must be seen in a isometric view like The Sims.
Ignoring the ...
2
votes
2answers
253 views
How to move the object(tanker ) on slope image in chipmunk Spacemanager
I have used one polygon shape image (terrain)in my game its just like mountain and now i want to move the tanker on mountain path from one direction to other and then its turn on touching of the ...
0
votes
0answers
290 views
How to move a sprite on a slope in chipmunk Spacemanager [duplicate]
Possible Duplicate:
How to move the object(tanker ) on slope image in chipmunk Spacemanager
I have used one polygon shape image (terrain) in my game. It's just like a mountain, and now I ...
1
vote
3answers
924 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 ...
5
votes
1answer
1k views
(Why) Should I choose Unity 3 or Cocos2d (or something third) for my app? [closed]
My colleague and me made an HTML 5 iPad game ( http://braille.gandzo.com/ ) and we would like to upgrade it, and our framweork is not enoguh, for what we want. Some of the things we would change are: ...
-1
votes
1answer
210 views
Need ideas on how to give my levels structure
I am making an iOS game for a project at school. It is going to be a tiny bit like Fruit Ninja, as in it will have different things on the screen, and when you hit them, they die, and you get points. ...
0
votes
1answer
534 views
glBlendFunc transparency in cocos2d?
GL_ONE, GL_ONE
This makes the flamingoes transparent on:
http://www.andersriggelsen.dk/glblendfunc.php
but not in cocos2d using:
sprite.blendFunc = (ccBlendFunc){GL_ONE, GL_ONE}
How can I achieve ...
0
votes
1answer
464 views
How do I perform a slice effect like Fruit Ninja?
I want to do slice effect like in Fruit Ninja. Is there any class in Cocos2D like CCBlade? How can I use the CCBlade in Cocos2D on Android?
1
vote
2answers
471 views
Cocos2D: TileMap performance question
I´ve got a question regarding TileMaps. Each level in my game is going to be determined by the length of the tile map. I would like to create a map that will be about 5 mins (in length) long. I want ...
2
votes
3answers
5k views
What are the pros and cons of GameSalad versus Cocos2D?
I am currently using the Cocos2D framework for creating my game but I just happened to come across GameSalad and was amazed by this video.
GameSalad claims to allow you to create games without ...
0
votes
1answer
597 views
Cocos2d: how to add anchor points to CCSpriteBatchNode
I am doing some tests with animations in Cocos2D using sprite-sheets. The animation works ok except that the anchor-point is in the center. I need to put it in the bottom. With the code below i am not ...
1
vote
1answer
376 views
Cocos2D Accelerometer Z axis
I am making a 2D scroller game where the player controls an airplane via the accelerometer I would like to know if it is possible to scale in and to scale out the sprite/airplane using the ...
0
votes
3answers
1k views
Sprite Animation Software That Works With Cocos2D
So the title basically says it all. I'm looking for software that would help me to create sprite animations that I could use with cocos2d by allowing me to pose a a sprite and the software create ...
1
vote
1answer
993 views
How to create a splash (loading) screen in cocos2d for Android?
How to create a splash (loading) screen in cocos2d for Android?
I need a loading screen that shows my app name and after that the next scene will show automatically.
Thanks
0
votes
1answer
301 views
Determining the X, Y co-ordinates in sprite sheets
I am new to Android COCOS2D and developing a simple game to start with. I am developing a game for kids in which the kids shall spell out the names of the fruits they select. I have developed the ...
-1
votes
1answer
229 views
Touching on the particular sprite from the spritesheet
I want to click on the particular sprite from the sprite sheet. For instance i have fruits sprite sheet i want to click on the particular fruit.
Thanks,
Jubin Mehta
-1
votes
1answer
816 views
How to make Moving road/track for android game?
I am very much new to Android game development. and i have little idea about the canvas and open GL. in one of my requirement i wanted to draw a moving road/track(Jazzy). how should i start. please ...
2
votes
1answer
5k views
cocos3d versus Unity for simple IOS 3D games?
Wondering if anyone here happens to have experience in doing some simple 3D based games/apps for IOS, using cocos3d & Unity and could give some pointers....questions I have are:
GENERAL
1) It ...
3
votes
1answer
2k views
Rendering shadow sprites in cocos2d-x
I am writing a 2D game with cocos2d-x. I want to put a "shadow" sprite on a background sprite using the equation:
MAX(0, Cd * 1 - Cs * S)
where Cd is the destination color (that is, a background ...
1
vote
2answers
2k views
Cocos2d Composition using CCSpriteBatchNode
I'm making a game in objective-c using cocos2d. I have the following:
@interface Player : CCNode
{
CCSprite *mySprite;
CCSpriteBatchNode *sceneSpriteBatchNode;
//...
}
@property ...
1
vote
1answer
462 views
How can I scroll sprites when swiping using Cocos2D?
I'm adding 3 sprites (layers) to CCParallaxNode:
BGLayer = [CCSprite spriteWithFile:@"Layer.png"];
[_backgroundNode
addChild:BGLayer
z:2
parallaxRatio:layer1Speed
...
1
vote
0answers
391 views
How to Store the game score in android cocos2d
I calculates the score in game project using android cocos2d, in that game after finishing the first level it goes to the next level, so i want to store that first level score and also add next level ...
2
votes
1answer
444 views
Z-order for cocos2d top-down game with sprite batching
I'm trying to understand how to create z-order system like you can see in http://www.realmofthemadgod.com/
Character is above the tree when he is in front of it and vice versa.
Also, I'm planning to ...
1
vote
1answer
297 views
How can I create a curved line composed of images?
I have 50 little images. All are connected each other, as in a line, sort of like a cord. I want to move one of the node images and have the rest follow along like a cord, so they become a curve.
2
votes
2answers
2k views
Cocos2d rotating sprite while moving with CCBezierBy
I've done my moving actions which consists of sequences of CCBezierBy. However I would like the sprite to rotate by following the direction of the movement (like an airplane). How sould I do this with ...
0
votes
0answers
808 views
Cocos2d Box2d how to shoot an object inside the screen [closed]
I have the code below :
- (id) initWithGame:(mainGame*)game {
if ((self = [super init])) {
isTouchEnabled_ = YES;
self.game = game;
CGSize size = [[CCDirector ...
1
vote
1answer
431 views
How can I place a ProgressBar in Android using Cocos 2d?
I want to place a horizontal progress bar in my Android application and I want to change its progress color. I used the following code, but the progress bar is not being displayed.
CCProgressTimer ...