i have this code float angle = rocket.rotation; float vx = sin(angle * M_PI / 180) * xVelocity; float vy = cos(angle * M_PI / 180) * yVelocity;
im using cocos2d with box2d. Currently im trying to optimize a system that i have installed to mak开发者_如何学Pythone certain objects have 0 gravity.
all I want to embeed multiple spriteFrame cache using the following code. [[CCSpriteFrameCache sharedSpriteFrameCache] addSpriteFramesWithFile:@\"abc.plist\"];
i have an error when scheduling a method. (to display how many star you get according to your score. i have addStar0 addStar1 addStar2 addStar3 methods)
Does anyone know why it will not rotate the sprite? - (void)ccTouchesMoved:(NSSet *)touches withEvent:(UIEvent *)event
Is there any one who knows how to integra开发者_开发问答te game center in Cocos2d. Please tell me steps so i can integrate that in my Game.UPDATE:
Ok so when I started out I had just one game class while I was learning. I kept messing with the code and added stuff to it and now it has become ridiculous. I am new to objective-c and dont really un
I have added a menu when touchesMove fonction is been called as: CCMenuItemImage * resetPosition =[CCMenuItemIma开发者_Python百科ge itemFromNormalImage:@\"position.png\" selectedImage: @\"position_ov
I\'m just trying to schedule an update method once in ccTouchesMoved, but when I add this if (isRotating == YES)
Hey, Well I went through the steps in that tutorial: http://pocketworx.com/?p=80, Now when I\'m trying to build, I get 45 errors, they say stuff like that: