I have multi touch enabled so when you have two fingers on the screen and move them up/down the thumbs move up/down. I also have a sprite that needs to change between sprites once the thumbs have fini
How can I draw a line using a texture in Cocos2D? Specifically I\'m looking to create an 开发者_运维问答effect similar to: http://www.slickcar.com/products/purple-neon.jpg
I\'m looking for a way to get the current scene so that I\'ll be able to tell which scene is running at any开发者_高级运维 time.
I\'ve been looking around for a while, and I have not been able to find an answer to this for some reason. It seems simple enough, but maybe I just can\'t find the right function in the library.
I\'ve tried experimenting with low life, low life var but the particles seem to hang around for a few seconds. I want them to fade quicker.
I know the - (BOOL)ccTouchBegan:(UITouch *)touch withEvent:(UIEvent *)event method but was wondering how I constantly do somet开发者_Go百科hing, such as move a sprite, while a finger is down?You could
When trying to compile the following code for iphone in xcode void removeGrid(int x,int y) { //for(id *item in self) {
hello everyone i use CCMoveBy for keeping a sprite going if (abs(dff.x) > abs(dff.y)) { id action = [CCMoveBy actionWithDuration:1 position:ccp(10,10)];
I have the following code: for (b2Body* b = world->GetBodyList(); b; b = b->GetNext()) { if (b->GetUserData() != NULL)
I\'ve almost finished with my multi touch code for my game but I\'m stuck with one more problem. This is done开发者_如何转开发 in Cocos2d btw :)