Tagged Questions
The objective-c tag has no wiki summary.
4
votes
2answers
90 views
Best way to do buttons for an OpenGL ES iPhone game
I'm making a simple 2d game in OpenGL ES and I want to add movement buttons to it. What's the best way of going about this? In previous projects I've simply added UIButtons to the view but I hear ...
-1
votes
0answers
69 views
Game center score not posting
I'm trying to add the score at the end of the game to Game Center but it's adding nothing to the game center. I'm using nslogs to check for error's but cant find anything.
Counter = in the .header ...
0
votes
1answer
89 views
Cocos2d CCSpriteFrameCache: couldn't load texture file
I am currently doing this Cocos2d tutorial: http://www.raywenderlich.com/1271/how-to-use-animations-and-sprite-sheets-in-cocos2d
...and get the following error messages:
2011-12-30 16:36:28.536 ...
2
votes
2answers
149 views
How to implement “Flick” gesture for throwing an object in the 2D realm
I am trying to implement a FLICK gesture for throwing a ball from point A to point B on the iPhone. This is my current plan....
Using touchesBegan and touchesEnd I can find the direction I need to ...
1
vote
3answers
205 views
Objective-C or C++ of game engine header file for iOS developers?
We've developed a game engine written in C++. Now we are preparing our game engine for iOS developers.
I guess that many game developers use C++ or Objective-C for their game apps. So I think we ...
1
vote
2answers
197 views
Cocos2d Composition using CCSpriteBatchNode
I'm making a game in objective-c using cocos2d. I have the following:
@interface Player : CCNode
{
CCSprite *mySprite;
CCSpriteBatchNode *sceneSpriteBatchNode;
//...
}
@property ...
0
votes
0answers
92 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?
0
votes
0answers
137 views
Cocos2d Box2d how to shoot an object inside the screen
I have the code below :
- (id) initWithGame:(mainGame*)game {
if ((self = [super init])) {
isTouchEnabled_ = YES;
self.game = game;
CGSize size = [[CCDirector ...
2
votes
1answer
240 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 ...
0
votes
2answers
91 views
What is the most secure way to archive a GKScore to be re-submitted later?
I'm looking for the safest way to archive and store a GKScore that needs to be re-submitted to Game Center (say, because the user didn't have a network connection at the time the score was earned). I ...
2
votes
1answer
180 views
What is wrong with my technique for transmitting server and client game state?
I'm doing a network implementation of a fast-paced game. I have a puck on bot the server and client side of the simulation. I want to update the client puck position only if they are on the same ...
3
votes
1answer
198 views
Unusual Lighting Effects - Random Polygons Coloured
I am working on creating an object loader for use with iOS, I have managed to load the vertices, normals and face data from and OBJ file, and then place this data into arrays for reconstructing the ...
1
vote
1answer
163 views
OpenGL ES Faces appear to be transparent when alpha is 1.0?
I am working on an object (OBJ File) loader for my app on iOS, currently I have successfully read the vertices and the faces of the object, and I am now just adding colours to the imported models.
I ...
0
votes
0answers
140 views
iPhone 2d side scroller game pathfinding problem
I'm making a Slime Invasion clone(android) for the iPhone. Now i have the side scrolling sorta done but now the enemies. I have it set up to spawn and everything but i have a problem with moving the ...
0
votes
0answers
90 views
objective-c iphone sdk dragging between a boundary box
I was thinking of make a slider/joystick but not in a circle but in a line.
So I made the image drag able only over the X axis and when it gets to the point
where the slider stops i did this :
...