Tag for questions specifically about v3.x of cocos2d-iphone. v3 is a rewrite with a largely new API and differing best practices compared to previous versions.
Questions tagged [cocos2d-iphone-3]
30 questions
0
votes
2 answers
Cocos2d v3 Image Naming Conventions
I'm migrating my apps from cocos2d v2.x to v3.x, first of all I'm not going to use spritebuilder. so in 2.0 there were 4 different resolutions for every sprite.
sprite.png/iphone
sprite-hd.png/iphone…

taffarel
- 4,015
- 4
- 33
- 61
0
votes
0 answers
Object doesn't fly right
I am a new programmer in cocos2D and I tried to do the tutorial https://www.makegameswith.us/tutorials/getting-started-with-spritebuilder/creating-two-levels/
but my Object just fly down on the ground and not right... I don't know what wrong…

J0k3R
- 303
- 1
- 14
0
votes
2 answers
how to save the touched position of x and y values in a array
I'm working with the cocos2d 3.x and Xcode 5.1.1.i'm doing the game like a candy crush,here i load the sprites to 5*5 matrix,and i already get the position for the touched sprite,now i need to save and use that x,y value in a array like…

Prabakaran
- 258
- 2
- 14
0
votes
1 answer
CCSprite not responding to Collision
I am a newbie to Spritebuilder and trying to make MARIO Game prototype. What i am doing is I am having 2 sprites, one sprite has fast walking character and other has normally walking character. I am changing the sprite through a button. When i click…

manish_kumar
- 260
- 2
- 12
0
votes
0 answers
iOS cocos2d v3 convert openGL code to CCDrawNode
I have a visit method for the dot indicator of my Sliding Menu Grid.
- (void) visit
{
[super visit];//< Will draw after glPopScene.
BOOL showPagesIndicator = YES;
ccColor4B pagesIndicatorNormalColor_ = ccc4([sud…

OMGPOP
- 1,995
- 8
- 52
- 95
0
votes
1 answer
Creating a lot of buttons for levels in Cocos2d using a for loop
I'm trying to make a couple hundred levels for a game I'm developing, so obviously I want to use a for loop and not create each button individually.
I do all of this fine, but the code I'm currently using makes it so that the call block for each…

spaderdabomb
- 942
- 12
- 28
0
votes
0 answers
Cocos2d Collision between two sprites prevent image jump/shift
I'm having an issue when my character sprite collides with a monster sprite, the monster sort of shifts as does the character sprite. By shift I mean, rotates the character slightly, and bounces the monster character a bit. How do I make it so the…

user3727511
- 31
- 6
0
votes
3 answers
Communicating between Two Layers in a Scene Cocos2d 3
I have two layers set up like so in one scene:
header file for scene:
@interface GameScene1 : CCScene {
GameLayer *gameLayer;
HUDLayer *hudLayer;
}
Main file for scene:
-(id)init {
self = [super init];
if (self != nil) {
gameLayer =…

user3727511
- 31
- 6
0
votes
1 answer
CCNode Hud, not acting as Hud but "scrolling with scene"
Attempting to simply have a scene where I have the gameplay, and the hud. Since I have it positioning the scene (which contains both layers), I assume this is why my Menu button is moving even though it's in the Hud Layer.
To fix it I would think…

user3727511
- 31
- 6
0
votes
1 answer
Adding a Hud Layer to Scene Cocos2d-3
To keep it simple, what is the easiest way to make the default [ Menu ] in default HelloWorld Scene (for example) as it's own layer. Issue I'm having now is that the scene is completely black, with nothing showing up!
GameLayer node:
- (id)init
{
…

user3727511
- 31
- 6
0
votes
0 answers
permantely positioning label regardless of camera view
How would I go about positioning say a sprite or CCButton on a Scene, regardless of the camera view? The issue I'm having is, when I have the character move and the camera follows, elements that I'd like to stay on the screen go off with it as well.…

user3727511
- 31
- 6
0
votes
1 answer
CCScrollView does't receive touches (Cocos2d V 3.0)
I try to add CCScrollView with paging (cocos2d- iphone v3.0). But it's not working.
It doesn't call any delegate methods (for example scrollViewDidScroll:).
CCNode *cards = [CCNode node];
for (int i = 0 ; i < 3; i++) {
CCLabelTTF *label =…

Kikiki
- 71
- 5
-1
votes
1 answer
Level selection logic like a angry birds in coco2d v3.x in ios
I'm working with the cocos2d 3.x and Xcode 5.1.1.My game have nine levels,i finished the game logic.i need to fix the level selection screen to my game.this level Screen first level only unlocked other levels are locked,then the first level is…

Prabakaran
- 258
- 2
- 14
-1
votes
1 answer
Replacing NSString with new string not working
I'm trying to replace a string every second by using a timer to update its value. Normally I can replace an NSString pretty easily by doing
myString = [CCLabelTTF labelWithString:varyingParameterLabelString fontName:@"Helvetica" fontSize:14];
for…

spaderdabomb
- 942
- 12
- 28
-3
votes
1 answer
Why is collision detection no longer working in cocos2d v3?
In old project i create collisions like in this question: why collision not working , cocos2d v3? .
It ran ok, however when I created a new project something was wrong.
I don't know what I did differently this time. Please help…

user3530550
- 25
- 1
- 6