Tagged Questions
0
votes
0answers
88 views
cocos2d Move Sprite using buttons [closed]
Using CCMenu I have create Two Buttons Up and Down Here is the code
CCSprite *normlUp = [CCSprite spriteWithFile:@"Up.png"];
CCSprite *selectedUp = [CCSprite spriteWithFile:@"Up.png"];
...
0
votes
1answer
151 views
Using depth buffer on a sprite
I am following this guide:
http://www.cocos2d-iphone.org/wiki/doku.php/prog_guide:tiled_maps
Trying to create a tiled map that also supports multiple layers. The guide says that a way is to use ...
0
votes
0answers
110 views
Detect Sprites, they are in Shape or Not which random draw in Cocos2d
I have searched a lot on web and found some of help ful links as exact my question.
Link 1 Link 2
But still i am not success to achieve this,
i have done some of code lines, as like draw line by ...
1
vote
3answers
272 views
How to deal with Character body parts from Design to Cocos2d
I'm trying to figure out the pattern the game developers use together with game designers:
See the picture below with the independent parts:
Questions:
1) Should I create different image parts ...
1
vote
1answer
382 views
How to make a Sprite using CoreGraphics iOS - Cocos2d-iPhone
I'm trying to make a sprite that uses the graphics that are made with core graphics. I cant seem to find anything to explain how to make shapes using core graphics to create a sprite to use in ...
1
vote
1answer
59 views
Issues with background coordinate configuration in objective c with runAction?
In my game I want to have two backgrounds going one after the other creating a continuous loop moving to the left. However, right now one goes, and the other does not follow it.
Here's what I ...
0
votes
1answer
354 views
Adding gesture recognizer (or dragging) to CCSprite
I'm trying to allow a CCSprite to be dragged across the screen. I've succeeded so far by doing it on a Layer level (from this tutorial). However, this only allows ONE sprite to be dragged at a time as ...
0
votes
1answer
208 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 ...
2
votes
3answers
483 views
How do you maintain content size vs. content quality in a mobile application?
I am developing my first Cocos2d iPhone/iPad game that includes quite a few sprites, I would need approximately 80 different. As this is for both normal and HD displays I have 2x of each sprite. I am ...
1
vote
1answer
382 views
Cocos2D Accelerometer Z axis
I am making a 2D scroller game where the player controls an airplane via the accelerometer I would like to know if it is possible to scale in and to scale out the sprite/airplane using the ...
0
votes
0answers
206 views
detect sprites by tag in parallax
I've created 3 layers and added to a parallax node in my game play scene;
I don't know why it crashes when I'm enabling touch, self.isTouchEnabled = YES; on one of my layers; I want that touch to be ...
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 ...