Objective-C is a general-purpose, high-level, object-oriented programming language. It's mainly used for game development on Apple iOS and Mac OS devices, however it's not limitied to this platforms.
0
votes
1answer
59 views
Cocos 2d move CCsprite in array of points [closed]
I need a CCsprite to move to the points in my array those points will form a circle.I know to move CCsprite but my app crashes when i make it to move in array of points. Help me where i am making ...
0
votes
1answer
19 views
Set texture of a LHSprite that is loaded from LevelHelper
How do i set the image/texture of an LHSprite that is loaded into xCode using levelHelper & spriteHelper?
I am using sprite sheets. So i tried to load the image the old fashioned way using ...
0
votes
0answers
40 views
How to select a show and select weapon on touch a bubble that changes continuously weapons! [closed]
hello i need to select a weapon from a floating bubble that changes weapon inside in it !
Bubble must show 2 weapons changing randomly until user taps to gain the weapon
(This lets user gain any bonus ...
0
votes
0answers
36 views
Image is displaying in inverse order cocos2d
I am drawing image in cocos2d using opengl call but image is displaying inverse order, i faced same problem previously that time i used to change value of CC_TEXTURE_NPOT_SUPPORT to 1 from 0 in ...
0
votes
0answers
27 views
Make a layer over an image and adjust its co-ordinates by touch
I need to make a layer over an image and adjust the layer to fit to image and get its co-ordinates of the layer.
I need to adjust the layer by touch and pinch.
The sample image is as below. I need ...
0
votes
1answer
96 views
DPad style movement for AI without using A*
What is the easiest way to implement DPad style movement (No diagonal) for AI without using and A* algorithm? I thought about having the enemy catch up to the player in the Y axis first then the X ...
0
votes
1answer
130 views
Copies of GameScene created when called additional times
UPDATE: It no longer crashes after removing [self removeAllChildrenWithCleanup:YES]; from onExit. The artifacts still remain though.
UPDATE 2: Found my problems. See my answer below.
I have a game ...
0
votes
0answers
121 views
Cocos2d update leaking memory
I have a weird issue - my app is leaking memory on device only, not on a simulator. It is leaking if i schedule update method anywhere, on any scene. It is leaking despite update method is empty, ...
0
votes
1answer
198 views
How can I simulate light using mask images on the iPad? [duplicate]
Possible Duplicate:
Can I achieve a torchlight effect (lighter area around a light source) in a 2D game?
I want to have a picture as a background, say this:
Then I would like to apply a ...
0
votes
1answer
363 views
Store and create game objects at positions along terrain
I have a circular character that rolls down terrain like that shown in the picture below.
The terrain is created from an array holding 1000 points. The ground is drawn one screen width infront and ...
0
votes
1answer
132 views
Changing location after CommitAnimations
I'm using the following code to move a UIImageView:
shootImg.image = [UIImage imageNamed:@"Projectile Left 1.png"];
[UIView beginAnimations:nil context:nil];
shootImg.center = ...
0
votes
0answers
137 views
Schedule update problem
This might sound pretty straightforward. I've created a method and I've called it as below in the init method.
[self createNewSpr:ccp(s.width * 0.25,s.height-200)];
[self createNewSpr:ccp(s.width * ...
0
votes
1answer
2k 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 ...
0
votes
0answers
806 views
Cocos2d Box2d how to shoot an object inside the screen [closed]
I have the code below :
- (id) initWithGame:(mainGame*)game {
if ((self = [super init])) {
isTouchEnabled_ = YES;
self.game = game;
CGSize size = [[CCDirector ...
0
votes
0answers
188 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 :
...
0
votes
1answer
976 views
How to make the accelerometer work in different angles
I am working on some Cocos2D tutorials (doodle drop) and have downloaded the program on my device. The program is working but I have to hold the iPhone in a very specific, and not very good, angle to ...
0
votes
2answers
1k views
OpenGL ES Framebuffer creation problem
I'm having some problems porting my D3D code to OpenGL ES. I have a Graphics Device class that encapsulates all rendering commands. The code below is in an ObjC++ file.
The problem code is the called ...
-1
votes
1answer
595 views
Help: -[GameScene spiderBelowScreen]: unrecognized selector sent to instance 0x257f50
I am currently doing the tutorials in the book: "learn iPhone and iPad cocos2d Game Development" by Steffen Itterheim and have been running into problems with the code for the DoodleDrop tutorial, ...
-1
votes
1answer
167 views
CGPointMake in Respect to other UIImageViews
I have a UIImageView called hitBox, and another image called mainSprite. So what I want to do is when an IBAction is pressed, it will move hitBox to above mainSprite. I don't know if this is syntax ...
-1
votes
2answers
307 views
Good open source iOS games? [closed]
I would like to see how things are done in modern iOS games, I am especially interested in Cocos2D games.
I need a game that will compile (warnings are ok) and since most of the project I have seen ...
-1
votes
0answers
22 views
Applying the vector of a swipe movement to a box2d object
Hi I'm trying to achieve game functionality where the player can place their finger on an object then swipe in a certain direction and apply the speed and velocity of the swipe to the object they have ...
-2
votes
3answers
701 views
Objective-C or javascript+html5+canvas? [closed]
I'm really interested in starting to study some language with the idea of develop games for ipad and iphone.
My main concern is that as soon as is possible to develop games with javascrit and html5 ...
-2
votes
1answer
504 views
How change the size of sprite in cocos2d?
I want to change the scale of sprite like a paper in 'Paper Toss' game.
'Paper Toss' is the game is available on the App store. I want to make a sprite like a paper and change the scale of sprite ...
-2
votes
1answer
1k views
To move the object (sprite) in all direction with constant speed in touch direction and to follow the touch path
I am developing this game in cocos2d.
I want to move a object(airplane) in all direction with constant speed and it should move and flip in the direction of touch point and it should follow path make ...
-3
votes
1answer
85 views
What is the difference between an object and a class? [closed]
What is the difference between an object and a class?
-3
votes
1answer
227 views
Mobile Game Development for beginners [closed]
I am currently making apps for iPhone in Objective-C environment. I also want to learn Game development in IOS and Java for iPhone and Android. Can any one suggest me a complete book that I could ...

