Xcode is an IDE from Apple which integrates design, coding, testing, and debugging capabilities for Mac OS and iOS software development.

learn more… | top users | synonyms

8
votes
2answers
1k views

What is the correct way to implement hit detection with non-rectangular sprites?

What is the correct way to implement hit or touch detection for non-rectangular sprites in Cocos2d? I am working on a jigsaw puzzle, so our sprites have some strange forms (jigsaw puzzle bricks). As ...
4
votes
1answer
88 views

Can I create cocos2d animations without using Xcode?

I need to have someone do animation work for an iOS game I'm developing (using cocos2d), however this person does not have a Mac and as such cannot run Xcode. Is there a way for them to create ...
3
votes
3answers
12k views

Can Xcode be used to create very simple games?

I am brand new to Xcode, and I am also brand new Objective-C programmer. I was wondering if it is possible to create simple Mac games with Xcode. If it's not possible, could you recommend me some ...
3
votes
2answers
178 views

Is it possible exchange points between players using Game Center?

I want to create a turn based two player game. In my game in a certain stage if player 1 loses he must give few points that he have to the opposite player. The game is implemented with game center. Is ...
3
votes
1answer
478 views

Unity XCode build linker error

We are trying to build a Unity game in Xcode but keep getting this error: ld: ...
2
votes
5answers
3k views

Learning C++ but wanting to develop iOS Apps

I'm a computer engineering student and taking my second programming class. I'm learning C++ using "C++ Primer Plus" 5th edition by Prata. I want to develop for iOS. I understand the main language for ...
2
votes
3answers
4k views

Am I allowed to release an app I developed with Xcode on windows?

I want to develop an app for the iOS app store, but don't want to invest in a mac since they start very expensive. So I considered running Xcode via VMware using OSX Lion on my windows 7 computer. ...
2
votes
2answers
743 views

Build-time GLSL syntax validation

Is there a way to validate GLSL syntax build-time instead of run-time? My application takes a long time to start and I want to know at the earliest possible stage that my shaders are ok. I'm using ...
2
votes
1answer
1k views

Spritekit water flowing [closed]

I'm wondering if there is a way in spritekit to implement water flowing through a path? like this water flow Right now I'm generating the path using UIBezierPath and PaintCode Any suggestion? ...
2
votes
1answer
2k 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
147 views

Collisions between sprites in SpriteKit

I'm making a game in XCode using SpriteKit. The game has a player and different types of projectiles that he has to avoid. When the player collides with the projectiles, the score changes and the ...
2
votes
2answers
298 views

Proper Text-RPG Monster Generator [closed]

I'm making a text-based RPG in C++ just for fun, and in a way that I can keep adding to it and hopefully give it graphics one day, and I've got a lot of code for everything. My only problem is that I ...
2
votes
2answers
1k 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 ...
2
votes
0answers
88 views

Porting libgdx game to iOS using Multi-OS engine - how to add Admob ads

I want to port my libgdx game to iOS using Multi-OS (RoboVM is no longer available). I've searched whole internet but can't find any info about how to use Admob with Multi-OS engine on iOS. Every ...
2
votes
0answers
483 views

FPS Drop after upgrading to XCode 4.3 [closed]

I'm hoping someone else has experienced this and subsequently found a solution as I am about to light my own hair on fire in frustration. Simply put, I was creating a Cocos2D app using XCode 3.2.6 ...
2
votes
1answer
776 views

Xcode workspace with Unity3D as a sub-project?

Let's say we're developing a 2D game with Cocos2d-iPhone and UIKit and CoreAnimation. But we're also considering leveraging the 3D capabilities of Unity 3D. Is it possible that we add the ...
1
vote
1answer
2k 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 ...
1
vote
1answer
200 views

Why does compiling Unreal Engine fail in Xcode on OS X?

I'm following Ben Tristem's latest course on using Unreal Engine and coding in C++. I have issues getting into Unreal however: when I create a project, it does its stuff, i.e. generates code, compiles ...
1
vote
1answer
235 views

Game Center Leaderboard not dismissing

I was implementing Game Center into my app and all was going well except for the leaderboard done button not dismissing the leaderboard even with gameCenterControllerDidFinish added in. I call up the ...
1
vote
1answer
1k views

Spritebuilder and CCScrollView, page indicators not showing up?

I'm using Spritebuilder to make my game, and CCScrollView usually saves me quite a bit of time. I'm trying to implement the scroll view much in the same way as the home screen on an iphone uses the ...
1
vote
1answer
400 views

Unity3d iOS: unable to find iPhone_GlesSupport.h [closed]

i've an old unity project and i've tried it just today (with unity 4.1) and xcode 4.6. Xcode is unable to build it for the error: "iPhone_GlesSupport.h" file not found. Im pretty a noob under xcode ...
1
vote
2answers
706 views

Game Development at iOS+Android Platform : Template Engine for UI

We have broken down our game development process to UI Programming Core Game Programming Particle Effect Programming UI will be created by a group of programmers and those UI will be used at Core ...
1
vote
1answer
437 views

Why do my pyramids fade black and then back to colour again [closed]

I have the following vertecies and norms GLfloat verts[36] = { -0.5, 0, 0.5, 0, 0, -0.5, 0.5, 0, 0.5, 0, 0, -0.5, 0.5, 0, 0.5, 0, 1, 0, -0.5, 0, 0.5, 0, 0, -0.5, 0, 1, 0, 0.5, 0, 0.5, -0.5, 0, ...
1
vote
1answer
691 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
624 views

Unity game debugging on Xcode

This question has two parts: 1. How to get meaningful information out of Xcode crash logs? The game runs fine on the editor but when running on an iOS device it crashes and then gives information ...
0
votes
1answer
80 views

How can I make background elements wrap around the screen?

I'm looking to make my clouds wrap around the screen in my game (like the picture). Right now it just continues off the screen. The current movement code is: Cloud.center = ...
0
votes
2answers
73 views

Count number of CCNodes of a certain class on a layer

Pretty simple question. I'm working in Objective C (cocos2d) and I'm trying to count the number of a sprites of a certain class are present on the current layer being displayed. For example, I have a ...
0
votes
1answer
29 views

Having trouble with EOF in Xcode [closed]

I'm getting an error that says "control may reach end of function" and I have gone through my code several times now and am not spotting the error. It may be something simple too. // loop ...
0
votes
1answer
25 views

How can I clear the screen in Xcode?

so I am following a tutorial to make a snake game in my Xcode console. But the tutorial i am following is using windows and therefore the "system("clear")" command isn't working with my mac, and all ...
0
votes
1answer
57 views

Easy SpriteKit question on creating a function

The following code is what I'm working on to animate characters in a SK scene class. I can run the code without building, no problem, but I can't build it and run it; I get one error message: Binary ...
0
votes
1answer
597 views

Unity3d iOS build - where are the textures?

First time building and running my Unity3D app on my iPhone and it appears that all the textures are missing. Everything is just a solid block of whatever color I made it. When running in Unity I ...
0
votes
2answers
614 views

Execute native ios code in unity [closed]

I want to execute native iOS code in unity. For this I have added two files in /plugins/ios. ViewController.h ViewController.m Code for each file represented as under. ViewController.h ...
0
votes
3answers
808 views

Can I create relative filepaths to images in an XCode SDL project?

Can I create relative filepaths to images in an XCode SDL project? I have to use absolute filepaths as it is, but it would be much easier if I could make the filepaths relative.
0
votes
1answer
561 views

SDL_types.h file not found using xcode

Getting this error when trying to use SDL_mixer... SDL_types.h file not found.. I am including all the correct files as far as I can tell and have included the frameworks (both SDL and SDL_mixer) ...
0
votes
1answer
303 views

Cannot find the Cocos2d templates

I am about to upgrade to the last version of Cocos2d and would like to uninstall my current Cocos2d templates before installing the new one but cannot find the templates to delete. I have looked at a ...
0
votes
1answer
313 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 ...
0
votes
0answers
11 views

Compiling 'Hello World' Cocos2D-x Project On Mac

I am trying out Cocos2D-x v3.10, but I am getting a compile error because I am missing an sql 3 library. The specific flag that triggers the error is -llibsql3 in the cocos2D_libs.xcode project. I ...
0
votes
0answers
7 views

Voice modification in IOS xcode

I want to record my sound and then change the effect of sound. For example if record my sound and by applying filters voice get changed into robotic sound. I need some links and example to do that.
0
votes
0answers
112 views

Unity to xCode - GIDSignIn.h not found

I exported my Unity game to xCode and when trying to compile I get the only error: GIDSignIn.h not found... I added the GoogleMobileAds SDK for iOS and the Google Sign In SDK for iOS (as .bundle ...
0
votes
0answers
13 views

Why are the images distorted in iOS build?

I'm working on a match three game. But, when I generate iOS build, the images are distorted and completely unrecognizable. However, the issue happens only on some systems. I tried it on an iMac ...
0
votes
0answers
36 views

Unity Creating XCode build causing too many XCode Changes When using GIT ( SourceTree )

I am using Unity 5.2.1f, XCode 7.2 and SourceTree. There are multiple developers working on the same project. After we updated to Unity 5.2.1 and Xcode 7.2, it always shows too many changes in the ...
0
votes
0answers
122 views

Moving pac-man in maze game using objective c

I am trying to develop maze game using objective-c, I want to allow moving the pac-man using swipe method, the user can swipe his fingers on the iPhone to indicate where he want PAC-MAN to go but I'm ...
0
votes
1answer
232 views

Is it possible to detect contact with every frame change when using an animation in SpriteKit?

Is it possible to detect contact with every frame change when using an animation in SpriteKit? For example, if I have two nodes of a person walking, I want to detect contact with the ground each time ...
0
votes
1answer
32 views

How to assign a button in the main storyboard to launch the GameViewController.swift file

I am quite new to swift and I have constructed a main menu in the main.storyboard file, how do I assign the 'Play Now' button to launch the GameViewController.swift file where I actually plan to ...
0
votes
0answers
180 views

Unity3d iOS build restarts when regaining focus from browser

I have an app made in Unity3d for android and iOS. In it, the user has the ability to link their accounts with Facebook and Twitter. For Facebook I use their Unity plugin, for Twitter, I open an ...
0
votes
1answer
705 views

Xcode project runs on device, but not simulator

I built a 2D game using Unity3d 5.1.1. When i build and run the project with iPhone connected, the game runs fine on the device. But when i select simulator instead of device, i get an error : " does ...
0
votes
1answer
141 views

how to build release version mac cocos2dx?

do you know how to build mac build release version? in this case i use cocos2dx framework. in vs2013 we easyly choose the build version but in xcode i dont know. the indication release build is all ...
0
votes
1answer
387 views

OpenGL in xcode 4

I'm just getting started with OpenGL with lot's of ideas on my head that i want to experiment, i started reading the OpenGL Superbible book which looks amazing but i am having a super hard time making ...
0
votes
1answer
84 views

Unity 4.6.6 iOS Build Issue

I am using unity 4.6.6 to create a Xcode build. When I create a build I am getting following error Cannot initialize return object of type 'Singleton_1_t6738 *' with an rvalue of type ...
-1
votes
1answer
848 views

Level Editor for iOS Games [closed]

What would be the best way to design "Angry Birds" - levels. I wanna develop my own Angry Birds but I don't know how I should design the levels. Is there any good tool/level editor for that? The app ...