People who code: we want your input. Take the Survey

Questions tagged [ios]

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

Filter by
Sorted by
Tagged with
2
votes
1answer
3k views

How to move an UIView along a curved CGPath according to user dragging the view

I'm trying to build a interface that the user can move his finger around the screen an a list of images moves along a path. The idea is that the images center nevers leaves de path. Most of the ...
1
vote
2answers
72 views

iOS unity game was ~60mb on testflight but now its +400mb on release, why is that ?

I really have nothing else to add except that bitcode wasn't enabled, the same game was ~60Mb when we were testing it with TestFlight, after uploading it to the store the game just became 422Mb, why ...
0
votes
1answer
174 views

How does an iOS developer get his app/game on the AppStores main page?

I was looking at the front page of the AppStore, and they display a new game and a new app every day. I was just curious, how does an iPhone developer get their game or app onto that front page? Does ...
2
votes
1answer
176 views

Calculating the difference between two numbers using exponential growth

I think this is a very basic game programming question, but I am bad with math and new to programming & game programming so I'm looking for some advice. I'm making a 2D sprite game for iOS. Every ...
1
vote
0answers
53 views

IOS Keyboard as Gamepad in unity

So I’ve been messing around in unity lately, and I got a vr headset to mess around as as well(google cardboard). I also want to make my own controller to use with this. To achieve this, I want to use ...
1
vote
0answers
40 views

Reliability of Google Analytics data

I have developed an iOS game and currently the game is in beta phase. I have integrated Google Analytics (GA) to understand the users' behavior. I am distributing the game to my beta testers using ...
3
votes
1answer
1k views

Can glTexImage2D() use an already existing memory block?

Can I use glTexImage2D() and / or glTexSubImage2D() (or maybe there's some other method I don't know about) with an already ...
0
votes
1answer
85 views

How to move in between grid in crossword game

I am trying to create crossword game in my current app. As my current project is in iOS native so I wanted to implement this game only in UIKit so that it can be easily integrated. Requirement i ...
3
votes
2answers
428 views

App Store free promotion

How can I make my app to be free for certain period of time? Is it ok to switch it to free and then after a day or two switch back to my original price, is it possible and where can I do it?
1
vote
1answer
169 views

Why is Unity 5.6 displaying launch image wrong on iOS?

I updated from Unity 5.5.0p3 to 5.6.0f3, and I have no idea what's causing this. The iOS launch image which looked like this: Now looks like this:
0
votes
1answer
293 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 ...
3
votes
1answer
4k views

How to add the iPhone X screen dimensions to the mix of different iPhone screen sizes

Generally for Unity I design all my artwork in Illustrator. So I start off with 1440x1920 (for portrait games) and outline a red frame of 1080x1920. So everything that fits well within the 1080x1920 ...
1
vote
0answers
194 views

Using a MTLTexture as the environment map of a SCNScene

I want to set a MTLTexture object as the environment map of a scene, as it seems to be possible according to the documentation. I can set the environment map to be ...
1
vote
2answers
2k views

Typedef redefinition error when running Unity iOS project in Xcode 9 simulator

I was able to run my Unity 2017.1.0b10 iOS project successfully on my iPhone 6S+ (Using Xcode 9). I changed the Target SDK to ...
1
vote
1answer
482 views

SpriteKit and Swift or Objective-C [closed]

As a newbie to iOS programming, I'm wondering which of these would be more conducive to the type of game I want to program. I've been tasked to program an iOS game for my company. They asked me to do ...
1
vote
1answer
766 views

Can't call GameCenter in my Unity game for iOS

I'm trying to integrate Game Center into my Unity 5 project and facings troubles. It seems that authentification is OK when the game starts on iOS device, a notification appears, but leaderboard ...
0
votes
1answer
151 views

Is it possible for a particle to have an infinite lifespan in SceneKit?

I'm trying to do an experiment where the user creates particles when they touch the screen, and then the particles just stay in place, only dying in collision. I'm wondering if it would be possible to ...
1
vote
1answer
206 views

How can I make a sprite slow down to the speed of another sprite while following it?

I'm making a SpriteKit game where two SpriteNodes are in a maze. That maze is represented as a grid. One sprite (A) travels faster than the other (B). Items randomly pop up, and the sprites have to ...
2
votes
1answer
2k views

Get the up vector of the camera in ARKit

I'm trying to get the four vectors that make up the boundaries of the frustum in ARKit, and the solution I came up with is as follows: Find the field of view angles of the camera Then find the ...
6
votes
1answer
843 views

Surprisingly, in SpriteKit game engine, “deltaTime” is not frame time?

In Apple's cocos-like 2D enginer, SpriteKit, they have what they call a custom field: ...
1
vote
1answer
2k views

Can't Unity draw fine and smooth line?

I'm working on drawing lines in Unity, but find there is no way to draw clear, fine and smooth line in Unity, neither ...
1
vote
1answer
860 views

Load large .obj file

I am working with the 3D model and I am using the Scene Kit for rendering and Model I/O for loading the obj file. It works perfectly fine for the small size of obj. But now I have 250MB of file and ...
4
votes
1answer
396 views

Cocos2D V3 Blur effect performance test without iOS device

I am testing the blur effect (CCEffectBlur) in Cocos 2D V3 and I found that when I add an effect to an EffectNode it takes up to ...
0
votes
0answers
1k views

Is built-in checking Android/iOS permissions on runtime possible?

I have a game with some levels, coded to both Android and iOS. One of the levels late in the game uses a ...
0
votes
1answer
228 views

Java 2d game cross-platform compatability

I need to make a few small, simple 2d educational games primarily to help kids improve their reading. Drag & drop/matching words with pictures, spelling out words as well as maybe a scrolling ...
1
vote
1answer
131 views

Does Apple allow different versions of the same game on the App Store tailored for different regions?

We are currently in negotiations with a Chinese company to give them the right to re-sell our game in the Asia region. Now for the Android version they want to sell it trough their website because ...
3
votes
2answers
1k views

Any way to load/execute scripts (game-logic) included in a post-release DLC (Unity3D AssetBundles) on iOS since it seems its not allowed?

We are making a game where players will be granted access to new levels every week and these new levels will probably be downloaded from our server as Unity Asset Bundles The only issue is, as ...
2
votes
2answers
558 views

IOS very simple 2d engine/api rendering showdown [closed]

So after taking some time running through a course, I believe I have enough experience with referring back to the course how to make the game I wish to all apart from one thing. How to draw the game ...
1
vote
1answer
448 views

Handheld video playback pauses when going to the home screen

Put an MP4 movie in your StreamingAssets folder and play it with ...
4
votes
1answer
988 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 ...
0
votes
1answer
944 views

Fixed camera rotate to follow character

I have a camera in a fixed position in the middle of a field, and I would like to rotate the camera to follow the character as it moves around. There is no point lower than the camera, but I would ...
10
votes
2answers
9k views

Using L-Systems to procedurally generate cities

I'm currently making an app that focuses a lot on procedurally generated content. So far, I've successfully implemented the procedural generation of the terrain and shape of a map using simplex noise. ...
1
vote
1answer
2k views

Developing an iOS/Android game with the free Unity license - feasible?

I recall, when I looked up the Unity license comparison page several months ago, seeing that some iOS/Android features were disabled for the Free license. However I can't seem to find that page now, ...
7
votes
4answers
6k views

Price for Unity on Android and iPhone? [closed]

I was looking at the Unity site, and I was a bit confused with the pricing. It says it's free, but for iOS/iOS Pro or Android/Android Pro. I need to shell out $400 minimum each. So if I want to ...
7
votes
2answers
2k 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 ...
5
votes
2answers
1k views

How to play sound effects on iOS?

I have a game that plays sounds when some events occur. Currently, I am using AVAudioPlayer for the purpose of playing the sound. But just the bare ...
1
vote
0answers
346 views

One SKSpriteNode with multiple PhysicsBodies?

I am making a game similar to Lunar Lander, when you land with your ship on different objects, etc... The issue I am having is that I have a Player SKSpriteNode (my Ship) with a slightly complex ...
2
votes
1answer
377 views

Adapting motion controls to changes in the player's orientation

I am using gyroscope data (pitch, roll) to move the player's space ship. It works perfectly as long as you play in a standard position (e.g. sitting down). Once you start using it lying down (e.g. ...
1
vote
0answers
14 views

iOS 8 iPad Mini Orientation thinks It should be landscape despite it being disabled

I've only enabled portrait mode in the info.plist and generally the iPad Mini running my game works fine except if I quickly change its physical orientation from landscape to portrait, the app ...
4
votes
3answers
9k views

In what size should i design sprites for unity iOS? [closed]

I am developing a 2D platform game in unity.I have conceptualised the game and have to design the art assets/sprites, but the problem is at what resolution or size do i design them? If I target the ...
1
vote
0answers
604 views

arm64 architecture issue in Unity iOS plugin

I am trying to use the iOS version of ORB_SLAM2 (https://github.com/ygx2011/ORB_SLAM2-IOS) as a plugin to a Unity (Unity 5.5) project. To be able to use this as a plugin, I created a static library (....
1
vote
0answers
333 views

Swift Spritekit: Create realistic driving sprite

How would I go by creating a realistic driving experience? I'm using iOS Swift 3 with SpriteKit using the functions applyForce to accelerate when I click the gas button and when braking I add ...
0
votes
1answer
1k views

udp over cellular networks? [closed]

I'm starting to build a multiplayer iOS game using UDP. I want the game to be playable over cellular networks, but I can't really find that much information on it. Many people say that it's dependent ...
1
vote
2answers
3k views

How can I create a “wireframe” texture for a sphere in SceneKit?

I've been struggling to figure this out. I would like to have a sphere in SceneKit that looks like this: I think the easiest way would be to create a mostly transparent texture with the wireframe ...
0
votes
1answer
186 views

POST & push for turn-based network?

Can you create a viable two player turn-based networking implementation using only REST API for outbound and push for inbound data? If a game is comprised of, on average, 30 moves, is it a bad idea to ...
2
votes
2answers
691 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 ...
2
votes
2answers
2k views

What are the basics in game architecture? How do you create your game skeleton such that it doesn't stay in your way?

There must be some best practices on how you create your game architecture/skeleton. One of the best resources that I found is: http://cowboyprogramming.com/2007/01/05/evolve-your-heirachy/ My ...
2
votes
1answer
4k views

Does CADisplayLink automatically control the app's timestep?

I'm writing an iOS game that uses OpenGL ES 2.0. I have my 'OpenGLView' which contains a ...
1
vote
1answer
172 views

In an iOS OpenGL ES 2 game, is it better to use a few large texture atlas or many small textures?

I'm working on new game, this time moving to more 3d objects and open gl es 2. Previous (successful) game was open gl es 1 and mostly 2d. For es 2 I'm developing my own 3d engine. My 3d artist ...
1
vote
1answer
1k views

3d transformation of game world keeping gameplay 2d - COCOS2D 2.0

I want to rotate the game world, may be loading another .tmx file for another dimensions when user want to switch dimension. The effect what I am looking for is something like the 'side' transition ...

1 2
3
4 5
14