3
votes
1answer
257 views
cocos2d sprite animation
Hi all,
How can I change an image position like background-position in css? By position I don't mean the position of background like ccp(200,150), I mean for example, I have an ima …
1
vote
2answers
202 views
Replacing image in sprite - cocos2d game development of iphone
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 h …
3
votes
2answers
86 views
most commanly used classes in cocos 2d animation.
I would like to know the most commonly used classes & their use.
For example.
Class Name
Sprite class = used for image (or may be anything else / I am a new one to cocos 2d …
1
vote
1answer
91 views
COCOS Sample Code / Tutorials links
I have tried to find out COCOS sample code & tutorials link through google.
But I couldn't find what I wanted.
If someone know, Please Share with iPhoneGame Dev.
Thanks in A …
2
votes
1answer
88 views
How to Play Sound on a Scene Load - in Iphone Game through cocos 2d
I would like to play a sound when A scene starts.
I don't know
How to set no of loops for a sound to play?
How to set Sound file to play?
What kind of sound file does cocos2d su …
2
votes
1answer
152 views
Are there any games in the app store based on cocos2D for iPhone?
Are there any games in the app store based on cocos2D for iPhone?
2
votes
1answer
83 views
Moving Sprites (more then one) at a time
-(void)moveBox:(NSTimer*)myTimer{
float endx=[[[myTimer userInfo] valueForKey:@"endX"] floatValue];
float endy=[[[myTimer userInfo] valueForKey:@"endY"] floatValue];
float timin …
1
vote
1answer
60 views
cocos 2d open source game links - for beginners
From my Previous question -
http://iphonegamedev.stackexchange.com/questions/64/cocos-sample-code-tutorials-links
I have asked here, one step ahead.
Previous question was basic …
1
vote
2answers
20 views
changing the Sprite position with timer - how?
I have following method to move sprite.
I want to call this function through timer.
How to pass arguments when calling function with timer,
-(void)setX:(int)x andY:(int)y andObj …
2
votes
1answer
51 views
how to change menu color in cocos 2d?
I am little bit confused regarding changing the color of Menu Item.
Because I didn't found any methods regarding it.
I have implemented following in my Game.
[MenuItemFont setF …