Questions tagged [kobold2d]

Kobold2D is an extended and improved version of the popular Cocos2D for iPhone game engine

Kobold2D is an extended and improved version of the popular Cocos2D for iPhone game engine. Everything you know about Cocos2D can still be applied, and Kobold2D is easier to get started with, more convenient to use, more powerful and flexible than Cocos2D with all the documentation available online and offline. Use Kobold2D to develop iPhone, iPod touch, iPad and Mac OS X games for both Apple App Stores. Kobold2D is free and open source with additional premium content to support its development. It was established by Steffen Itterheim, author of the book Learn Cocos2D Game Development with iOS 5.

141 questions
1
vote
1 answer

How to add a tile dynamically in isometric map in Cocos2d-iphone

I have an isometric map made using Tiled Map editor. Current tile has only a base layer (i.e. the background). I want to add a tile OVER this layer dynamically, say at tile position (1,1), such that the tile effectively becomes a part of the…
Tushar Koul
  • 2,830
  • 3
  • 31
  • 62
1
vote
1 answer

Display a CCSprite seven times

I am a beginner in Cocos2d and I wanted to display 7 coins in a horizontal pattern. So this is what I wrote in my main gameplay layer: In my init, I have this coins = [CCSprite spriteWithFile:@"coins.png"]; I made a method for the coin patterns I…
Shalin Shah
  • 8,145
  • 6
  • 31
  • 44
1
vote
1 answer

Textfield in cocos2d/kobold2d not showing color

I need to create a textfield where a player in my game can enter their name for highscore purposes. I followed this question: UITextField Example in Cocos2d , and successfuly created a textfield with the keyboard. However, the textfield's text is…
Spenciefy
  • 892
  • 11
  • 33
1
vote
2 answers

Can i mix normal OpenGL ES 2.0 with Kobol2D / cocos2d on iOS?

I am making a 2D game for iOS using Kobold2D/cocos2D. Now i've decided to try and add some 3d buildings as well (think GTA1/2 everything is 2D except the buildings). I know how OpenGL works but im getting all sorts of errors when try to implement…
user1033619
  • 1,757
  • 2
  • 11
  • 11
1
vote
2 answers

How to I get a scene to follow my sprite?

I've been trying to get my scene to follow my Player sprite but for some reason its not following. Can anyone explain why? I've tried following tutorials but no luck. This is my current code: [self setViewpointCenter:Player.position]; …
Troy R
  • 426
  • 2
  • 16
1
vote
1 answer

How can I get CCMenuItemSprite selector to call other layer void?

The below code works great when I'm calling the void in the same .m file but I want my selector to go to a 2nd layer in my scene for its 'MoveUpSelected' void (which contains my actions for the sprites movement). How can I do this? HUDLayer.m Button…
Troy R
  • 426
  • 2
  • 16
1
vote
2 answers

Communitacting between CCLayers in one Scene

I have 2 CCLayers that needs to communicate with each other in separate .m files Level1.m (CCScene with Level1 CCLayer) - Holds tiled map and player sprite HUDLayer.m (links to top of Level1.m) - Holds all buttons How can I get the following code…
Troy R
  • 426
  • 2
  • 16
1
vote
3 answers

'itemFromNormalSprite:selectedSprite:target:selector:' is deprecated

Why am I getting this warning and how can I fix it? I'm using Kobold2D v2.1.0 (Uses cocos2d-iphone v2.1 and OpenGL ES 2.0) My code: CCMenuItemSprite *flareButton = [CCMenuItemSprite itemFromNormalSprite:flareSprite selectedSprite:flareSelectedSprite…
Troy R
  • 426
  • 2
  • 16
1
vote
1 answer

How to make the click work AND How do I delay a function in init? XCODE

blue = [CCMenuItemImage itemFromNormalImage:@"blue.png" selectedImage:@"blueclick.png"]; [blue setPosition:ccp(175, 350)]; blue.scale = .75; [self addChild:blue z: 5]; id move = [CCMoveBy actionWithDuration:1.0f…
1
vote
1 answer

Xcode 4.6 causing libobold2d-ios.a not found error in Kobold2D

I'm getting the following error after upgrading Xcode to 4.6 and building my Kobold2D project: ld: file not found:…
Jon Mattingly
  • 434
  • 5
  • 13
1
vote
2 answers

Kobold2d and XCode 4.6 Error

I had the same issue as gabrielhilal as see here. LearnCocos2D posted to remove all references to FIXCATEGORYBUG. My question is how to do this? References from where? My apologies if that is a silly question.
Hartix
  • 310
  • 3
  • 13
1
vote
2 answers

… was rejected as an implicit dependency for '…' because its architectures 'armv6 armv7' didn't contain all required architectures 'armv7 armv7s'

I am trying to build my app in release mode but I keep getting these warnings and I can't seem to figure out how to fix them. chipmunk-ios was rejected as an implicit dependency for 'libchipmunk-ios.a' because its architectures 'armv6 armv7' didn't…
Stephen
  • 499
  • 9
  • 28
1
vote
0 answers

ld: file not found: libkobold2d-ios.a (Kobold2d)

I am having a problem when trying to build to my device. I keep getting the error: ld: file not found: /Users/Stephen/Library/Developer/Xcode/DerivedData/Tire_Hoops-buzmngpjbdxukpbanrmqlxpfbreg/Build/Products/Release-iphoneos/libkobold2d-ios.a I…
Stephen
  • 499
  • 9
  • 28
1
vote
1 answer

Changing Shader on CCSprite

I'm not sure why, but I am changing the Shader(CCGLProgram) on my sprite multiple times. I want to be able to use a previous Shader I allocated and used on the sprite, however doing so turns my entire sprite black (with no errors). The only way I…
AwDogsGo2Heaven
  • 952
  • 11
  • 26
1
vote
1 answer

KKInput panningGesture giving wrong values when Iphone is tilted

I'm using KKInput from kobold2d to do some drag and drop using the panning Gesture recognizer. When the iphone is flat on the table it works perfectly, but if I tilt the phone towards me the translation seems completely wrong and no longer behaves…
AwDogsGo2Heaven
  • 952
  • 11
  • 26
1 2
3
9 10