Skip to main content
The 2025 Annual Developer Survey is live — take the Survey today!
14 votes

Can you show rng code running in real time in a game?

Yes, you can. There are already online platforms that are doing exactly that, by providing you the hash of the online secret key that is used as the seed for the random generation. Same seed = same ...
Zibelas's user avatar
  • 4,672
13 votes

Train-like movement in a 2D game

I'm not used to Cocos2D engine, but I can suggest this solution for you to apply to your game. Naive implementation The simplest way to implement a train wagon can be making an object which follows a ...
liggiorgio's user avatar
  • 5,377
5 votes

Xcode Build Failure: Unity Framework Error -> Undefined Symbol (IL2CPP Related)

I finally found a fix for this. It needs to be done in Xcode as follows: Xcode > Product > Clean Build Folder The errors will then clear and the build will deploy as expected.
Cato's user avatar
  • 103
4 votes

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

The following snippet calls EnterApplication() and ExitApplication(), for you to implement yourself. It works in Editor, on Android, and on iOS, consistently. The methods are called when the ...
Evorlor's user avatar
  • 5,871
4 votes

How to not cover up the Android/iOS top status bar (eg. with time, network/wifi icons) in mobile Unity app?

I wrote this for a project a few years ago. It should work fine, but I no longer maintain it. It shows the status bar in the color of your choice. Usage: ...
Evorlor's user avatar
  • 5,871
3 votes

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

Try setting the material fillMode to .lines: ...
Morty's user avatar
  • 131
3 votes
Accepted

Calculating the difference between two numbers using exponential growth

To put these into a formula, it seems that you want something that varies with the distance from the boundary, so first calculate that parameter (I'll call it dx ...
tom10's user avatar
  • 196
3 votes
Accepted

Get the up vector of the camera in ARKit

In a 4x4 transformation matrix, all directions are contained: First row of matrix contains the x-axis. Second row of the matrix contains the y-axis. Third row of the matrix contains the z-axis. Fourth ...
Bram's user avatar
  • 3,744
3 votes

Why is Unity 5.6 displaying launch image wrong on iOS?

There is a bug in 5.6 which causes transparency to not be imported. Install the newest patch release. Then reimport the affected file(s). Then try the build.
M156's user avatar
  • 315
3 votes
Accepted

GL_CLAMP_TO_BORDER - OpenGL ES 3

GL_CLAMP_TO_BORDER became legal in GL ES 3.2 (link to specification), but may otherwise be available by one (or more) of the following extensions: GL_NV_texture_border_clamp ...
Maximus Minimus's user avatar
3 votes
Accepted

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

The standard practice is to have a button somewhere onscreen to do this. That's because it is obvious, clear and present whenever the user decides they need to pause. While the swipe / gesture is a ...
Engineer's user avatar
  • 30.4k
3 votes
Accepted

How do I access device camera in GameMaker Studio 1.4?

GameMaker doesn't have native support for device cameras, that's the reason you didn't find anything about it in the docs. On the other hand, you can try to access the webcam on desktop devices using ...
liggiorgio's user avatar
  • 5,377
3 votes

How can I store in-game money so that nobody can manipulate the amount?

What I do is store the data in an obscured and verifiable fashion in memory and on disk, only decoding it when necessary. As mentioned in the comments, this will not prevent alteration, but it will ...
Ed Marty's user avatar
  • 5,259
3 votes

Is Apple Game Center Multiplayer Online?

So, its a little weird, but... I used it once a number of years ago using Prime31's Game Center plugin. What it does is facilitate two (or more) copies of the game communicating with each other in a ...
Draco18s no longer trusts SE's user avatar
3 votes
Accepted

HIGH energy consumption in Empty Scene Unity iOS

I am constantly updating this answer, I will remove this message when I have stopped. There is no magic bullet that will make it work right out of the box. It's a series of steps required to achieve ...
Candid Moon _Max_'s user avatar
3 votes

Is an iOS development license with Unity free?

You can use Unity personal tu publish a game on every platform for free but if you start making a revenue up to $100k per year you need to pay an annual plan, which starts at $40 per month. Here you ...
Mario_N's user avatar
  • 31
3 votes

Can you show rng code running in real time in a game?

See mental poker. That article describes a problem that's a bit harder than the one that you outline, as you are asking merely how to prove to the players that you gave them the "right" ...
Acccumulation's user avatar
2 votes

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

There is currently no way to completely eliminate particle death, but you can set the particle life span to an outrageously high number (20,000 seconds is pretty close to the upper limit of the safe ...
Tam Hartman's user avatar
2 votes

Can't Unity draw fine and smooth line?

@ZEKE briefly figured out the problem might be wrong settings of game rendering resolution. When I looked into it I found there had been a ...
Suge's user avatar
  • 141
2 votes
Accepted

iOS 9.3.5 WebSocket connection always closes with code 1006

In my case the problem was the line endings being generated in part of the response header I was creating in LabVIEW. I had a pre-built string that included everything but the base64 handshake, and ...
UnlikelyNomad's user avatar
2 votes
Accepted

Record video and sound from device camera and show it as a texture

Are you targeting Metal or OpenGL? I would suggest taking a look at CreateExternalTexture This lets you basically take an id<MTLTexture> (Metal) or ...
Ed Marty's user avatar
  • 5,259
2 votes
Accepted

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

Typically, Apple makes their choices as to what goes in various featured sections at their discretion. If you have a good partnership with Apple, you may be able to guide their eye to your project, ...
Ed Marty's user avatar
  • 5,259
2 votes
Accepted

How to implement a Play As Guest feature on a mobile device using PhoneGap?

A quick look at the documentation reveals that you can easily access the device identifier via device.uuid. From here, it should be easy to use this as an ID for the server. If that fails, another ...
Christian's user avatar
  • 2,057
2 votes

Is Apple Game Center Multiplayer Online?

Draco18s is mostly correct about the no-server limitations, but in fact GameCenter does allow multiplayer across the internet. I have released at least two games that use multiplayer via GameCenter on ...
Ed Marty's user avatar
  • 5,259
2 votes

How best to detect device performance capabilities and set quality setting accordingly when using Unity

I cannot give "the best practice" because it really depends on your situation. But I can give two real world examples from games I worked on. In Love & Hip Hop, we checked the RAM of the device. ...
Almo's user avatar
  • 6,708
2 votes

How best to detect device performance capabilities and set quality setting accordingly when using Unity

This is 2 years old, but still quite relevant and as the answers are somewhat lacking (in my opinion), I'll share my experience and solution to the question for anyone who might be or still be looking ...
user3345048's user avatar
2 votes

Textures in build duplicated, despite they're packed into atlases

Here's an official answer. Any assets inside the Resources folder (including Sprites and Atlases regardless of being packed) will always be exported. This is by design. So when we make a ...
Jacob's user avatar
  • 2,552

Only top scored, non community-wiki answers of a minimum length are eligible

X