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
1
vote
1answer
3k views

In iOS, where/how to do a back button?

Edit: To sum up my question, what is the established back gesture for iOS games (when no pause button exists)? I have a block puzzle game, square grid, and some levels fill up the whole screen with ...
6
votes
1answer
957 views

Train-like movement in a 2D game

I am developing a 2D game using Cocos2d-X in C++ language. In my game, I need to implement train movement. Here is the image about the output I want to achieve: I tried to do the above moment using ...
0
votes
0answers
194 views

Libgdx: How to setZIndex for pause dialog?

Pause dialog has to appear on top of the play screen, it has to appear on top of other objects. I have tried to use ...
2
votes
1answer
797 views

Unity application freezes on ios at pause

When I play my game made with Unity on iOS device, and press the home button or let the screen close by time or by pressing the power button and then try to come back to the game, the game freezes ...
0
votes
1answer
1k views

The object can't rotate around z axis in SceneKit

I am doing an app with a functionality like a 3D compass, it can point to the direction where I want. The code is ...
0
votes
1answer
643 views

Libgdx: Aligning buttons inside dialog

I have the following dialog, semi circle shape. I want to position buttons in it. ...
0
votes
2answers
1k views

Libgdx: How to draw the score on the top left?

I want to keep the score visible on the top left corner of the screen. I have the score talking care of. I just want to display it. Score: x The comment on the ...
0
votes
2answers
518 views

Libgdx: how to pick a random texture?

I'm trying to pick a random texture from a fodler placed in assets and use it but it's giving me errors. I'm doing so in the main game screen class ...
0
votes
1answer
80 views

Double touch joysticks

I am developing a mobile game where I need to control main character in any direction using touch analog joystick (https://pineight.com/mw/images/6/6f/Ipoc_dpad.png). It's ok but I also want my ...
0
votes
1answer
911 views

How to change mute/unmute button?

I'm saving music in libgdx preference, the following code works perfectly but if you enter the settings again you'd see the initial button up regardless if the ...
0
votes
1answer
458 views

Libgdx: How to leave the dialog visible?

...
1
vote
2answers
2k views

Libgdx: How to replace texture with shaperenderer?

I have a method that creates rectangles, it takes a texture for (Rectangle rect : rect) { game.batch.draw(rectImage, rect.x, rect.y); } The ...
1
vote
1answer
881 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 ...
1
vote
1answer
662 views

What is the shader format for Metal shaders shipped with iOS applications?

I am interested in analyzing existing shaders implemented using Apple's Metal framework. From my previous experience on other platforms with OpenGL, I have found that applications sometimes bundle ...
1
vote
0answers
54 views

What strategies are best for managing Game Center and offline saves in the same app?

I have an iOS app for which I want to use the Game Center API for saving games. At the same time, I want to have the option to save multiple games on the local file system, using the familiar save-...
0
votes
1answer
331 views

When should iOS gamecenter authentication be called?

I'm integrating GameCenter leaderboards into my iOS game. The game has a home screen with a play and "High Scores" button, the game screen itself, and a finished screen with you score, another "High ...
1
vote
1answer
450 views

Handheld video playback pauses when going to the home screen

Put an MP4 movie in your StreamingAssets folder and play it with ...
0
votes
1answer
70 views

Are TestFlight apps the same as the finished product?

This may be an obvious question, but to me it is a little unclear. I built an app using PhoneGap. While testing with PhoneGap Desktop and the associated app it was pretty obvious that this was just a ...
0
votes
1answer
154 views

AdMob - my own impressions

I wanted to test my in-game ads and I forgot to add my device as a Test Device. My game is not yet in Google Play and App Store but I have 12 impressions on AdMob. ...
0
votes
1answer
3k views

Minimum hardware requirements for developing for iOS and Android with Unity, Cocos2d-x and GameSalad on a Mac

I intend to create iOS and Android games. My main priority is to create 2D games. The software that I’m planing to use are Unity, Cocos2d-x and GameSalad. I am a bit interest in the Mac Mini, ...
0
votes
0answers
77 views

while loop not being executed on iOS

So I have this code for showing an ad. It is supposed to pause the app while the ad is showing. It works on android but on iOS it doesn't even seem to be called, judging from the debug msgs shown in ...
1
vote
2answers
2k views

How to save a text file to relative Path

I'm creating an app that should be accessable from every platform (android, IOS, windows). At this moment I'm saving a file that is set to a specific path. c:\test\test.exe. Now I know that Android ...
2
votes
3answers
320 views

Do Google/Apple provide the multiplayer servers for an app themselves?

I have an app that I have been working on and I was wondering does Google/Apple host the server requirements for the multiplayer aspects of an app?
1
vote
2answers
52 views

Upgrades in game with leaderboards? [closed]

I am working on an endless mobile game right now and I'm currently in the designing phase. Most (or all) mobile games especially endless ones now have leaderboards and a player's position in the board ...
1
vote
1answer
80 views

Slow down in the same time over different distances

I'm trying to slow down a object over different distances in the same time, say 3 seconds. My slow down code is. ...
0
votes
1answer
534 views

Maze or puzzle algorithm for something similar to noodles

Not sure if anyone has played Noodles at all https://itunes.apple.com/gb/app/noodles!/id967624193?mt=8 but it is a simple puzzle game, that involves rotating tiles until they link up. The tiles are ...
1
vote
1answer
1k views

How to create and choose sprite sheet for different mobile screen resolution in Unity

Background We’re working on a 2D mobile game. We want to publish the game on all apple devices which at least support iOS 7 and to all android devices which at least support Android 4 OS. These ...
1
vote
0answers
713 views

Fatal error: unexpectedly found nil while unwrapping an Optional value [closed]

I am trying to run this code but I keep on getting this error: fatal error: unexpectedly found nil while unwrapping an Optional value I don't understand why I'm getting it. Any hint? ...
14
votes
2answers
17k views

Why does Unity let you install iOS Build Support on Windows?

When installing Unity on a Windows machine, you are allowed to select "iOS Build Support" as one of the components to install. However, it is not possible to make an iOS build from Windows. Why is ...
1
vote
1answer
560 views

iOS: controlling size of assets designed in Cinema 4D when importing into Xcode?

A designer provided the attached two DAE files created in Cinema 4D. The characters in these DAE files are to be integrated into an iOS game. Both assets are of ...
0
votes
0answers
127 views

Unity3d app immediately goes to background after starting up on iOS

So the iOS build of my game started doing this today and I have no idea why. The only think I can think of is that I added this line : ...
3
votes
0answers
35 views

First time working on 3D game: exporting steps after designer finishes 3D characters?

First time making a 3D game so could use advice. The designer is creating 3D characters with Cinema 4D (https://www.maxon.net/en/products/cinema-4d/overview/). What steps are required to go from his ...
1
vote
1answer
491 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 ...
0
votes
1answer
407 views

Xcode Build Errors Unity 4.7.2

These two errors are doing my head in. New to Xcode. So please advise thank you. FYI I did not touch or modify anything of the Xcode that was generated by Unity. Upon opening there is a warning that ...
0
votes
1answer
113 views

Unity and C# - Cube with random directions

I want to create a similar line RigidObject in Unity c# just like in the iOS game Circle: So far I placed a cube object that is extended by length. So, how would you approach to create such an ...
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 ...
-5
votes
1answer
274 views

Should I patent game before putting it on Apple App Store?

If it's a huge hit, I could then patent it. Or, if I put my game up on App Stores before patenting, does this cause a problem? Would this invalidate a patent application? Should I bother to even ...
5
votes
1answer
2k views

Unity Capture And Display Live Camera Feed

I want to display the video using the device camera on specific part of the screen on iOS, android and Editor. I was able to find the WebCamTexture which display the camera video on the Quad (3D ...
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 ...
1
vote
0answers
95 views

TVOS SiriRemote micro pad value change handler is not called

I have a UIViewController which inherits from GCEventViewController and I register a value change handler for the GCController microPad Profile. But when I use the SiriRemote in the Simulator none of ...
5
votes
1answer
3k views

How do I pixelate a scene with SceneKit and Metal, in Swift?

I managed to get pixelation working by using the OpenGLES2 rendering API, and a CIFilter. But it was way too slow, so I want to use the Metal API and just have a very simple filter that pixelates ...
1
vote
0answers
166 views

Black border all around simulation / viewport in iOS using Xamarin + CocosSharp

I'm just getting started with Xamarin and CocosSharp so it's possible I've missed something basic here.. but whatever it is I can't seem to figure it out. I'm trying to get my app/game to be ...
2
votes
3answers
6k views

How do I know when the app is launched, loses focus and gets focus again on mobile?

I searched in Unity Documentation but there are no information. I'd like to know which methods is called and what it returns in the following scenarios on Android: App initially starts App goes in ...
-2
votes
1answer
631 views

Will Chartboost block my account for clicking my own ads?

I created a game in iOS and Android. Every day I manually click ads in it from my device. Is this okay? Or can Chartboost block my account if I do this for a long time? I've been doing it for the ...
0
votes
1answer
102 views

Should the Sprites in my Boids implementation be backed by model objects?

This question is about the proper way to architect an implementation of Craig Reynolds Boids algorithm. I have an Agent object like this: ...
1
vote
0answers
33 views

Paradigm for storing user data for iOS

Disclaimer: I'm not well versed in Game Dev best practices so this may be a trivial question. I'm developing an iPhone game in which I have to store a user profile containing such information as ...
1
vote
0answers
641 views

Mobile game without game engine [closed]

I am planning on making a 2D mobile game for iOS and Android. It will have animations (including some simple flash/light and particle effects, like in Candy Crush), but the only physics the game will ...
0
votes
2answers
143 views

Android game to iOS, go with an engine?

I have developed a game on android using native coding. However I am being asked to port it to ios. So I thought that I should bite the bullet and recode it in unity so I can go cross platform. I ...
0
votes
1answer
188 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 ...
5
votes
1answer
4k views

iOS build size is too large in Unity

I have finally completed my game and ready to upload my game to the App store, but my build size is too large. I have checked log statement and it is roughly 13.3 mb but when i build my game and test ...

1 2
3
4 5
14