Hello everyone,
I'm trying to play a "cut scene" with cocos2d. I use:
[[CCDirector sharedDirector] replaceScene:[CCCrossFadeTransition transitionWithDuration:0.2 scene:[s node]]];
to play the new scene.
However, i want to return to the previous screen when i'm done playing this cut scene.
Can anyone help me?
...
Hello.
Using Cocos2D, is it possible to create a button which constantly triggers when being touched, instead of triggering just once?
I'm happy to have a timer which does the repeat trigger, so I guess another question is can I use a touch removed with a Cocos2D menu button?
Cheers. :-)
...
how can i clip/crop/mask or just set the frame of a CCSprite in Cocos2D?
Something similar to:
setting the frame for UIView, with clipping subviews = TRUE
My CCSprite Main Sprite have multiple Child Sprite added to it.
I only want Mask part of that Main Sprite Sprite visible.
Is there a way to clip or use a mask for CCSprite?
I could...
Hello.
For school I have to make a game for my iPod touch, I chose to do an asteroids game. I have just started with cocos2d but have read the wenderlich blog. I wanted to use chipmunk in my game, i want realisitc motion of the ship. Is there a tutorial on creating the asteroids motion?
Thanks.
...
Hi,
How much fps does iPad support 1.0/60 or 1.0/30 ? I looked in to apple site and iPad specifications. The fps is given as 1.0/30. But some are saying that it supports more than iPhone.
In my game for iPad which I am writing using cocos2d frameworks I am using
CCDirector *director = [CCDirector sharedDirector];
[director setAnima...
Hi,
i am using the following code for the mail composer sheet in iPad application. I used the same code for iPhone. It worked.
I am writing the game in iPad using cocos2d. The game is in landScape mode. The control in EmailScene is stopping at [picker presentModalViewController:picker animated:YES]; It is not giving any error. Should I c...
hi,
I am writing a game in cocos2d. I want to add MFMailComposeViewController to the scene.
So, when I touch a CcLabel in the scene the mail sheet is opened.
@interface EmailScene : CCScene <MFMailComposeViewControllerDelegate>
{
MFMailComposeViewController *picker;
}
-(void)displayComposerSheet;
@end
@implementation EmailSce...
I want to have a sprite scale up and down once every second to make it seem like it is bulging and pulsating. How can I do this?
...
I'm working on an iPhone game using Cocos2d where the main character is approximately 194x114.
the animation consists of 100+ frames making my spritesheets larger than the 1024x1024 limit. The obvious solution would be to separate the animation to several files and swapping spritesheets when necessary. while doable (i guess) i'm not qui...
I would like to bend sticks in an animated fashion in my cocos2d application in response to user touches. A good example of this is a diving board in a swimming pool when a person jumps from the board into the pool. How would you create the animation of the diving board bending up and down?
...
Hii,
How to change the font size and font style as Bold of a menu item at different situations in a game
...
I am try to apply an action to a tilelayer of a cctilemap, but when it starts, the layer adds a black background below the tile layer, which covers anything below it. How would I go about removing this background, or changing it to transparent?
...
I am using box 2d. I just want to move my body to the point. What is the best way to do this?
...
I am trying to implement the style of 3D rotational animation you see in the Elements and the Wired iPad applications. The animation has the UIScrollView style acceleration so it looks like they have connected a UIScrollView to a sequence of images.
I have tried implementing it in UIKit, using an "empty" UIScrollView to increment throug...
Hi,
Is the latest version of Cocos2D compatible with iOS3?
When I change #define CC_ENABLE_PROFILERS 1 in ccConfig, I'm able to compile the file in iOS4. However, trying to run the file in iOS3 is giving me an error in iOS3 (I tried #define CC_COMPATIBILITY_WITH_0_8 1) as well.
Thanks,
Tee
...
I have a sprite(image of a ball) I can move it using touch and move. I have also identified the rate of change of location(x-axis,y-axis) of that sprite depending on sliding period.
Now I need to continue that sprite to go according to its speed and direction. Here is my code-
Touch Event
- (BOOL)ccTouchBegan:(UITouch *)touch withEven...
I am using the cocos2d library. when xcode builds, it builds twice as many source files as it needs to, i.e. 162 instead of the 81 that come with the cocos2d library.
this only happens when i build in release mode on the device, i.e. not device / debug nor simulator release / debug.
I have tried clean all targets to no avail.
I am us...
Anyone know of a good tutorial for this? I am new to box 2d and don't really understand it much.
...
I have developed a game. When i checked in iphone, i found that my game pause when an incoming call comes and restarts after attending and ending the call. How to make it resume instead of restart
...
Hi,
I am writing an game app in iPad using cocos2d. And the game is in landscape mode. It have a sprite gun that shoots, and the sprite is the middle (512,10).
The targets appear along the x-axis. By swiping on the sprite gun I have to generate a trajectory of the bullet according to the angle I have swiped.
So, I have initial and final ...