Discussion on Fred Faller - iPhone game, Cocos2d

7 comments found.

What Ad Networks are implemented ?

Does it support GameCenter ?

It uses iAd and supports GameCenter too.

Hi, im getting error switching to test the code..


Could you please help me..? I just updated the name of the game in plist code and then in build section but im not able to run in my iphone 5s!!!

Fixed. When i die there is no option to return to main screen! Can you fix it?

There is function “finishGame”, which displays menu and there are two buttons: “Replay” and “Menu”. The last one is calling function “-(void)mainMenu” and returns to main screen.

I died. What i need to do to return to main screen? The code is buggy!

There is function “finishGame”, which displays menu and there are two buttons: “Replay” and “Menu”. The last one is calling function “-(void)mainMenu” and returns to main screen.

I do not see these option in game over menu..in fact, when i die,...i got this

2014-09-16 01:00:21.894 FredFaller[2912:60b] Finish game 2014-09-16 01:00:21.910 FredFaller[2912:60b] cocos2d: animation stopped 2014-09-16 01:00:21.912 FredFaller[2912:60b] cocos2d: animation started with frame interval: 4.00 2014-09-16 01:00:21.937 FredFaller[2912:60b] -[CCFileUtils fullPathFromRelativePath:resolutionType:] : cocos2d: Warning: File not found: menuBack.png 2014-09-16 01:00:21.938 FredFaller[2912:60b] cocos2d: CCTexture2D. Can’t create Texture. cgImage is nil 2014-09-16 01:00:21.939 FredFaller[2912:60b] cocos2d: Couldn’t add image:menuBack.png in CCTextureCache 2014-09-16 01:00:21.942 FredFaller[2912:60b] * Assertion failure in -[PopUp addChild:], /Users/claudiosouzamattos/Documents/Dropz/CocosFramework/libs/cocos2d/CCNode.m:362 2014-09-16 01:00:21.944 FredFaller[2912:60b] * Terminating app due to uncaught exception ‘NSInternalInconsistencyException’, reason: ‘Argument must be non-nil’
  • First throw call stack: (0×3078fecb 0×3af26ce7 0×3078fd9d 0×3113de2f 0xc6253 0×140cb9 0×1407a3 0×139ea7 0×13b85d 0×13b6ed 0×13705b 0xe75b7 0×114469 0×11581b 0×3c05ef 0×32c8beef 0×32c8bc99 0×35a4b75d 0×3147b5c9 0×3074fc15 0×3075a807 0×3075a7a3 0×30758f6f 0×306c3729 0×306c350b 0×356226d3 0×33024871 0×12e1e7 0×3b424ab7) libc++abi.dylib: terminating with uncaught exception of type NSException

Check this file “menuBack.png” in project root folder, if it is linked to the App.

Nice work, GLWS! :)


Hi how do I speed everything up like the speed the man walks and how fast the screen scrolls down? It is a really nice game btw.

Also how to adjust the jump height etc. thanks

Apologies the frame rate is adjusted through changing line 208 but the actual speed that he moves when you tilt left or right.

On line 536 there is “playerVelocity.x = playerVelocity.x * deceleration + acceleration.x * 3.0f;” and you can change “3.0f”.

Hi, I want to use just the four first frames in the man walking;;; How do I set it to use just the four first frames of the man in the animation ?

Hello, In this file ‘GameplayLayer.h’ on line 67 and 68 there are: CCTexture2D *bodyMoveLeft10; // Left move textures CCTexture2D *bodyMoveRight10; // Right move textures replace 10 with 4. and in file: ‘GameplayLayer.m’ on line 697, there is allLeftTextr = 10; replace 10 with 4. That’s all. Happy new year. :)

Thanks, my friend. Happy new year to you too !

Hi, How do i remove the iAd adverts ??

Hi, in “GameplayLayer.m” file on line 755, comment this line [self initializeBanner];