I have a cocos2d hierarchy of layers that is very very deep.I want to access my scene from any of the layers?Ho开发者_如何学Pythonw would I do this?
I have a bunch of classes that retain an instance of the scene and I\'m starting to think this is going to cause memory management issues for me.
I have a text field in my Cocos2d app and when I tap it to start typing, the app just crashes. I don\'t have much more to explain, here\'s my code:
EDIT: i tried this code in a new project and it works as expected. the following code is used on top of aopengl view (using cocos2d) added with
I have some problem with CCMoveTo: id actionMove = [CCMoveTo act开发者_运维技巧ionWithDuration:3 position:ccp(pointBoard[x][y].x,pointBoard[x][y].y)];
I\'m building a cocos2d game which is supposed to be in portrait mode. I changed the RootViewController.m to portrait mode, and everything works fine, both on the simulator and on my iPad. However, wh
This question already has answers here: Closed 11 years ago. Possible Duplicate: How to Install Cocos3D for iPhone/iPad ?
I created a tile map using Tiled application. The map is 40X40 with the tileset size of 32X32. In the game the map is scrolling downwards giving the illusion that the car is moving. I am having troubl
In My application,I am playing a music using the following code.But i want to reduce the volume of the background music.How to do that.开发者_开发问答
What method should I use to smoothly move my sprite that responds to a touch? I am using the CCMoveTo method with the duration and the position of my touch is. My sprite moves but it (the sprite) skip