Tagged Questions
0
votes
2answers
82 views
Can CCAnimations be paused?
I am new to cocos2d. I am using CCAnimation. It's working fine, except I want to pause the animation occasionally. How do I do this?
Here's what I'm doing so far:
[mySprite ...
1
vote
3answers
323 views
Wait till all CCActions have completed
I am developing a simple cocos2d game in which I want to animate two CCSprites simultaneously, and for this purpose I simply set CCActions on respective `CCSprite's as follows.
[first ...
-1
votes
2answers
385 views
2D animations frames vs 3D animation for small indie project: timing considerations
pretty lame question but was wondering..
I am developing a 2D game using Cocos2D for iOS. The art work till now is all 2D (is a shooter game) but some of the characters would benefit of complex ...
1
vote
1answer
442 views
Running one action on multiple sprites simultaneously
I have created a spiraling animation for a football. I want to be able to run it on 2 sprites simultaneously.
This is what I have done:
CCAnimation* footballAnim = [CCAnimation ...
3
votes
2answers
536 views
2D Animation Smoothness - Delta time vs. Kinematics
I'm animating a sprite in 2D with key frames of rotation and xy-positions.
I've recently had a discussion with someone saying that when the device (happens to be an iPad using cocos2D) hits a ...
0
votes
1answer
201 views
Player sprite moving slower on iPhone 4
I just finished getting movement/jump animation for a player sprite in Xcode using Cocos2D. The basic movement algorithm is a timer that updates every 0.01 sec, changing the sprite position to ...
1
vote
0answers
139 views
How do I control an animation with a drag command?
I want to play an animation when someone drags a sprite from it's default position to another selected position. If they drag half of the selected position then animation will be play half. For ...
3
votes
1answer
716 views
Cocos2d animation problem, [__NSCFString rect]: unrecognized selector sent to instance
I am testing (and learning) animation in Cocos2d using a series of .png's called "splash-x.png". I am getting error and at the first sight i thought it was easy to solve but it turned out that i ...
1
vote
3answers
1k views
Making smooth walk/jump/fly etc animations
i am soon gonna start with developing my own game for the iOS, i have the plan and idea of the game ready. BUT i have 1 question. How do people make such a smooth animation? Lets take for example: ...
1
vote
1answer
932 views
How to animate a flip of a card in Cocos2d?
I am working on a card game and would like to ask if someone could advice me how to implement a flip of a card in Cocos2D?
2
votes
1answer
1k views
Objective-c Cocos2d moving a sprite
I hope someone knows how to do the following with cocos2d:
I want a sprite to move but not in a single line by using
[cocosGuy runAction: [CCMoveTo actionWithDuration:1 position:location]];
What ...
1
vote
1answer
928 views
Smooth animation in Cocos2d for iOS
I move a simple CCSprite around the screen of an iOS device using this code:
[self schedule:@selector(update:) interval:0.0167];
- (void) update:(ccTime) delta {
CGPoint currPos = self.position;
...
0
votes
0answers
1k views
How to animate a Cocos2d sprite in a shake-like motion (earthquake)?
Does cocos2d (iPhone) have an action/animation to shake/vibrate a CCSprite?
Of course I could build a CCSequence to do that, but I thought that cocos2d may already have such an animation implemented.
...
4
votes
3answers
559 views
Determine animation frame from interval
I have an array of sprites that are displayed in-order to make an animation. There is code in an update loop that has access to a value 'time' indicating how far along the animation is. Time is a ...
3
votes
1answer
4k views
iPhone image asset recommended resolution/dpi/format
I'm learning iPhone development and a friend will be doing the graphics/animation. I'll be using cocos2d most likely (if that matters).
My friend wants to get started on the graphics, and I don't ...
