I want to change the sprite image.
Say for example.
mainSprite=[Sprite spriteWithFile:@"redFile.png"];
[self addChild:mainSprite];
Here, Sprite is already added to a layer.
I have mainSprite (pointer) which can access it.
If I change
[mainSprite setOpacity:150];
it works perfectly. ... |
I can“t seem to create a b2PolygonShape with vertices in my Box2D Cocos2D project. I get no errors but nothing shows up at the screen.
How do you get a static ... |
i want to add Box2D into my cocos2d 0.99.5 iphone/ipad project. I don't want to start new Box2D project from template.
I've added Box2D folder with Collision, Common & Dynamics, into ... |
So i have the action build to make my frog jump but i have 5 images and i want to run them in the order 1,2,3,4,5,4,3,2,1 using the coordinates. I only ... |
I built an app on cocos2d version 0.8 and now can not find an online tutorial on how to animate a sprite. I don't want to have to switch the whole ... |
I am using Cocos2d and Xcode 4. My app currently displays the launch image in portrait mode, then switches to landscape so the image is on its side, then launches the ... |
is it possible to have particles without using cocos 2D. I know particle designer but we have to use it with cocos 2D. How can I make particles without cocos 2D ... |
|
I'm French so excuse my poor English.
I'd like to know is if Tiny Wings, Angry Birds, and other great applications like that use cocos2D, for some or all of their game. ... |
Hey, i'm using a mousejoint for my b2world to move objects around.
I have two objects. a Hero and an Enemy each with their own b2bodies.
The mousejoint works if I click on ... |
I want to make a application in which i have image of sand now when user touches the image he should feel that he's writing on sand means embose like effect ... |
Please, I need help in making this code work. I intend to do an animation with a sprite I added using cocos2d and box2d in xcode. But for some odd reasons ... |
I'm a bit stuck here, basically I'm trying to compile Box2D as a static cocos library. I started by creating a static library project in xcode4 and dragged in the source ... |
I have created a universal app and I want to display a default image. I assigned all images to the properties we can set in xcode4. But I did not get ... |
i have followed many videos on how tho animate sprites in cocos2d. But i seem to always com across this when the code is run.
CCSpriteBatchNode *spriteSheet = [CCSpriteBatchNode SpriteSheetWithFile:@"animbear.png"];
it says ... |
Hi I want to be able to enable multitouch for cocos2d. How can I do this. I want to test each touch event like my code below. Please help.
-(void) ccTouchesBegan:(NSSet *)touches ... |
I am making an iphone app with cocos2d and box2d. I have a problem of switching layers. I use a loading scene to switch between views and it works fine with ... |
I have an iphone app built with cocos2d and need to access the current layer from another class. I have a HelloWorldLayer and a Cannon and I need to access the ... |
My project originated as the cocos2d Box2D template and I'm having issues as soon as I tried to create a world:
world = new b2World(gravity,doSleep);
Gives the error: No matching constructor for initialization ... |
I have created a box2d world, and I wanted to limit the height of the world.
I did search google and apparently there was an option in the previous version of ... |
I notice several other people have had similar problems, however this is a bit strange...
I have a new install of scode 4.2 and the most recent cocos2d from a few weeks ... |
|
I am using a curved image(like sine wave) in my app. i want to detect the boundaries of the image. How can i calculate those boundary points
|