iOS is an operating system for mobile devices created by Apple Inc. It runs on the iPhone, iPad, and iPod touch.

learn more… | top users | synonyms

0
votes
1answer
77 views

Can I my iOS-based editor save .plist files that my Mac game can read?

I want to make an editor on iOS which will record touch positions into a file. That file (in the .plist format) will eventually be used for positions in my Mac connect-the-dots game. Can I save one ...
0
votes
1answer
109 views

Exporting spritesheet for Cocos2d

I would like to know how people usually save the animations in order to load them easily in Cocos2d with as few hard-code as possible. E.G. The solution I thought of is to have one plist file ...
1
vote
1answer
41 views

Spritekit - gradually apply force vector in different direction (space ship turning)

I have a space ship that I'm applying a force vector to using a joystick for control. I would like this to smoothly fly around when I'm switching directions.. Exactly like minisquadron if you've ...
0
votes
0answers
12 views

shifting turn in real time game using ios

I am trying to develop a real time game in ios but not getting how to shift turn that the users will likely to be real.I think it is not possible using php.So which will be better for that. Thank you ...
0
votes
1answer
946 views

Rendering Texture Quad to Screen or FBO (OpenGL ES)

I need to render the texture on the iOS device's screen or a render-to-texture frame buffer object. But it does not show any texture. It's all black. (I am loading texture with image myself for ...
2
votes
1answer
38 views

SpriteKit - How to jump to specific position?

I'm would like to achieve something like Object A will jump to position A in parabolic way. For example: I am able to make the object jump but i do not know how to calculate to make the object jump ...
0
votes
1answer
142 views

Is this technique for stat tracking without a database workable?

If I wanted to create a chess game, for iOS, that tracked both player moves (for retracing the progression of a game and for player stats), what would be the simplest route to take? To clarify, I ...
0
votes
0answers
8 views

NSuserDefault with Uibutton [closed]

How to store Uibutton in NSuserDefault or Which properties required to save in NSuserdefault so that the Uibutton recreate ??
0
votes
0answers
10 views

iTunes Connect Not Deleting Game Center Leaderboard Test Data

I was wondering if anyone has had this problem, and if they were able to rectify it: For the last few days, I've been trying to delete Game Center test data from iTunes Connect unsuccessfully. The ...
1
vote
2answers
100 views

How to detect collision on specific part of the sprite node

I have a spike and a ball is falling down, when the ball touches the top point of the spike, I want to make the ball invisible, and when it touches on the other part i.e on the sides I don't want to ...
0
votes
1answer
91 views

Swinging a sword in Xcode with Sprite Kit

I'm working on making an RPG in Xcode, and I'm having a major gameplay issue when it comes to having my character swing his sword in a way that is realistic and gameplay compatible. Right now, when ...
1
vote
0answers
31 views

How do I setup scoring system for my game? [closed]

I've created a simple endless game. And I want the scoring system to be something like the one in flappy bird. My aim is to publish my game to app stores in the end. How do I save/keep a high score? ...
1
vote
1answer
55 views

Sprite Kit - containsPoint for SKPhysicsBody?

I have a ball bouncing around the screen. I can pick it up and drag it onto a "bucket". When my touches finish, I use the containsPoint function to check and see if I have dropped the ball onto the ...
1
vote
1answer
128 views

iOS Sprite Kit - Blend Mode Effect

This question builds upon the following question: How can I achieve a good fire effect with alpha blending and particles? I want to achieve the visual effect of using SKBlendModeAdd on a black layer, ...
2
votes
1answer
99 views

Approaches for a clickable map of nations (such as a Risk game) with Spritekit

I would like to create a political map where each country is clickable by tapping but I'm not sure the best way to determine which nation was selected. Imagine Risk where each country can be ...
0
votes
0answers
8 views

FreeType2 Crash on FT_Init_FreeType in xcode(cocos2dx) [migrated]

I'm currently trying to learn how to use the FreeType2 library for drawing fonts with OpenGL. However, when I start the program it immediately crashes with the following error: problem loading file ...
1
vote
1answer
111 views

How should I structure my code to add enemies?

So I am currently making a 1942-style game in Sprite Kit. I've reached the point where I am finished implementing pretty much everything (movement, shooting (also recognizing a hit and exploding an ...
0
votes
1answer
168 views

Which gesture recognizer should I use to handle multiple simultaneous flicks?

So, if you can picture a game with little ninjas running down at you, and a bunch of shurikens at the bottom of the screen, you're picturing the set-up I'm addressing. I want the player to be able ...
0
votes
1answer
56 views

How can I know when a player quits out of a turn from the Game Center UI?

In an iOS Game Center managed turn based game, if a player quits out of turn from the Game Center UI, then turnBasedMatchmakerViewController:playerQuitForMatch isn't called (as expected). However, the ...
0
votes
2answers
191 views

OpenGL ES, orthopgraphics projection and viewport

I want to make some simple 2D game on iOS to familiarize myself with OpenGL ES. I started with Ray Wenderlich tutorial (How To Create A Simple 2D iPhone Game with OpenGL ES 2.0 and GLKit). That ...
0
votes
1answer
47 views

How to get the complete width of SKSpriteNode which has many child nodes

I have a Sprite node with many 6 child nodes. Each are placed one after another in X-axis. I want to know the complete with of the Sksprite node. SKSpriteNode *array = [SKSpriteNode node]; [array ...
0
votes
1answer
246 views

Multi Resolution graphic for ios 4 and ios 5

i have used cocos2d-x to code game for ios 4, ios 4s, ios 5 with screen size (3.5 inch and 4 inch) First, my resource are desgined for ios 4 and ios 4s with screen size : 3.5 inch. so if i want to ...
0
votes
2answers
87 views

How to define axis of Sprites in a CCAnimation?

I'm struggling to find how to define a kind of axis in my frames, when my sprite punches it moves back. I want to define the head as a pivot for the other sprites with different sizes. How can I ...
1
vote
1answer
149 views

How can I ensure my Collada model fits on an iPhone screen?

Hi I am new to game development. I see many examples and tried myself like displaying triangle, cube etc. Now I am looking to render a Collada object. So I created a Collada object using Google Sketch ...
0
votes
0answers
12 views

Maintaining a constant magnitude of speed of a CCNode's physics-body after collision with a static body

I have two CCNode class "Baffle" and "SmashBall" with there physics bodies. Here are the PhysicsBody details of Baffle // Defining the physics body CCPhysicsBody * physicsBody = ...
0
votes
1answer
27 views

equivalent texture function to texture2D in OpenGL-ES?

I'm trying to figure it out how can implement the same result using texture2D. The result expected is a luminescence operation but I couldn't replicate the same functionality using texture2D for iOS. ...
0
votes
2answers
256 views

Cocos2d: Moving background on update: offsett issue

working with Objective C, iOS and Cocos2d I am developing a vertical scrolling shooter game for iPhone (retina display models with 640 width x 960 height pixel resolution). My basic algorithm works ...
0
votes
0answers
23 views

Game Center- modifying turn-based match

I was looking through Apple's programming guide for Game Center to see if it would be able to do what I would like to in my game, but I couldn't find a conclusive answer. I'm looking to make a game ...
2
votes
2answers
43 views

How can I add an impulse to specific rigid bodies at rest?

Scenario Rocks falling down a rocky slope, with a flat surface at the bottom. When they land on the surface, the rocks move slightly before coming to a rest. GLESDebugDraw shows the bright orange ...
0
votes
1answer
155 views

Unity animations in iOS

I'm an iOS developer and I'm trying to make 2d animations with Unity 4.3 + RageTools Pro + RageSpline. I want to integrate the animations into a native iOS application. In Unity I have different kind ...
-1
votes
1answer
29 views

Connect players with same phone language settings

I am working on a turn-based multiplayer game using game center. The game also use Spanish localisation. It is enabled by reading the device language settings. Now my requirement is: When i start a ...
0
votes
2answers
148 views

How can i get almost pixel perfect collision detection in a multiplayer game?

I'm currently working on a multiplayer game for iPhone. The problem i have, as with all multiplayer games, is that the other user will always see everything at a non-constant delay. The game I'm ...
0
votes
0answers
25 views

How can I fix latency problems for car game? [duplicate]

Basically I'm trying to make a online car racing game for IOS using Game Center real time multiplayer. I have setup a timer that sends data every 0.02 seconds to the other player with the current ...
0
votes
0answers
20 views

iOS: game with facebook challenges

I created a game for iPad and I want to challenge my facebook friends. I follow the iOS tutorial in "facebook dev docs", with the "Smash game", but it doesn't explain how to challenge a friend ...
1
vote
1answer
106 views

In 3D camera math, calculate what Z depth is pixel unity for a given FOV

I am working in iOS and OpenGL ES 2.0. Through trial and error I've figured out a frustum to where at a specific z depth pixels drawn are 1 to 1 with my source textures. So 1 pixel in my texture is ...
0
votes
0answers
40 views

Cocos2dx InApp Purchase for ios

I am trying to integrate In App Purchases in my app made by using cocos2d x c++. I am using easyNdk Helper for In App Purchases. My In App Purchases works perfectly for my Objective C apps. But for ...
1
vote
1answer
271 views

difference between cocos2d-x vs cocos2d-js

I'm just moving towards native apps... A friend of mine told me to start with cocos2d, I'm good in javascript. while searching google for cocos2d, and within cocos2d-x.org i found cocos2d-x ...
0
votes
0answers
57 views

How can I port a MonoGame Windows Phone 8 game to iOS?

I downloaded the trial version of Xamarin Studio and installed it on my iMac. In addition, I installed Xcode on my iMac so that I can use the iPhone emulators in Xamarin Studio. But I don't know how ...
0
votes
0answers
33 views

Random Facebook Friends Profile Pictures

I'm thinking of a new game for iOS. It's a social game that needs a random image generator with the images of your Facebook friends. My first question is: is this even possible? My second question is: ...
7
votes
1answer
188 views

How do I reconfigure my GLES frame buffer after a rotation?

Note: In order to keep the question as simple as possible, I am actively changing the body of the question to reflect the current state of affairs, instead of adding stuff at the bottom. I am ...
1
vote
4answers
359 views

How to store an iOS game save file in multiple devices? (Without remote servers)

I've been developing an iOS game for iPhone. My game saves the progress as a couple of .plist documents in the device. I have come to realize that when I install a game in my iPhone, this same game ...
0
votes
0answers
141 views

Posting to facebook from unity3d on iOS and android

I've made a game in unity3d for iOS and android. We have our own server to manage high scores and stuff like that. We'd also like to have the possibility post high scores to facebook, and also do ...
-1
votes
1answer
86 views

in-app purchase in cocosSd-x 3.0

I am working within a team, and we're at the point of finishing our first cocos2d-x c++ application. We want to add in-app purchases. for what, we made a search for this. We found 2 solutions: 1- ...
0
votes
0answers
16 views

How exactly does app ranking work?

So I've been in the app industry for around half a year and I still don't know how exactly ranking higher for your app will help increase downloads. That sounds like a question with an obvious answer ...
4
votes
1answer
273 views

Do leaderboard sets (in Game Center) allow 500 unique leaderboards?

The Game Kit Programming Guide for iOS claims: The number of different leaderboards allowed increases to 500 leaderboards per game when leaderboard sets have been enabled...Leaderboard sets ...
0
votes
0answers
52 views

iOS + cocos2d: how to account for sprite's position for the different device dimensions in an universal app?

All the questions I've seen regarding iOS universal apps (with or without cocos2d) deal with the "how to add graphics to a universal app". My question is, how does the code need to be written to ...
5
votes
4answers
169 views

What platform should educational games target? [closed]

Should educational games target the PC or mobile market? My professional development experience has been with the PC, but I'm wondering if mobile (iOS, Android, etc.) has a better market for ...
3
votes
2answers
2k views

Cocos2D: Upgrading from OpenGL ES 1.1 to 2.0

I have recently starting upgrading my ios game to the latest Cocos2D (2.0 rc), and I am having some difficulties upgrading my texture generation code to OpenGL 2.0. In the old version I generated ...
1
vote
2answers
261 views

How to find collision detection side between two objects?

I am using box2D and I have two objects, one is bouncy ball and the other one is block. I'd like to find which side of the block is collided with, so I can only make the ball bounce when it hits the ...
0
votes
2answers
102 views

OpenGL 2.0 - How to swap buffers for color picking

I'm trying to reproduce color picking on iOS, following the technique described here: http://www.lighthouse3d.com/opengl/picking/index.php3?openglway2, with OpenGL ES 2.0. When the user touches the ...