xcode « cocos2d « iPhone iPad Media Q&A

Home
iPhone iPad Media Q&A
1.animation
2.audio
3.AVAudioPlayer
4.box2d
5.cocos2d
6.CoreGraphics
7.CorePlot
8.Flash
9.graphics
10.icon
11.image
12.photo
13.plot
14.sound
15.video
iPhone iPad Media Q&A » cocos2d » xcode 

1. Replacing image in sprite - cocos2d game development of iphone    stackoverflow.com

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. ...

2. How to create a static body with b2PolygonShape vertices    stackoverflow.com

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 ...

3. how to configure Box2D in xcode    stackoverflow.com

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 ...

4. Cocos2d animation from sprite sheet    stackoverflow.com

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 ...

5. cocos2d version 0.8 sprite animation    stackoverflow.com

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 ...

6. Display launch image in Landscape Mode?    stackoverflow.com

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 ...

7. xcode iphone particles without cocos2D    stackoverflow.com

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 ...

8. Do notable applications use cocos2d?    stackoverflow.com

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. ...

9. box2d. Mousejoint with overlapping b2bodies    stackoverflow.com

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 ...

10. Need some help for animation like we write on sand in iphone app    stackoverflow.com

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 ...

11. Animating a sprite in cocos2d , box2d and Xcode    stackoverflow.com

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 ...

12. Compiling Box2D in Xcode, build directory issues    stackoverflow.com

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 ...

13. How to assign default landscape image for iphone in xcode4     stackoverflow.com

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 ...

14. cocos2d sprite animation "SIGABRT"    stackoverflow.com

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 ...

15. How to enable multitouch cocos2d    stackoverflow.com

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 ...

16. How to release CCLayer's    stackoverflow.com

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 ...

17. How to access the current layer in cocos2d    stackoverflow.com

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 ...

18. Xcode: Cocos2d: Can't create world with Box2D    stackoverflow.com

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 ...

19. Box2D world size    stackoverflow.com

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 ...

20. Compilation errors setting up Box2D with Cocos2d in Xcode    stackoverflow.com

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 ...

21. How do I prevent my .png images being compressed in cocos2d?    stackoverflow.com

  • I set the pixel format to RGBA8888:
    [CCTexture2D setDefaultAlphaPixelFormat:kTexture2DPixelFormat_RGBA8888];
    
  • In the xcode build settings, I set "Compress PNG Files" to "No"
  • My images are exported in photoshop as png-24.
  • I'm running in the simulator.
And my ...

22. How to Trace the image Boundaries in Cocos2d    stackoverflow.com

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

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.