Questions tagged [mobile]

A portable device capable of multiple applications, one of which is a platform for playing games. Mobile phones are the eponymous example of such devices. Distinct from handhelds, which are exclusively or primarily designed for gaming.

Filter by
Sorted by
Tagged with
0 votes
1 answer
21 views

Unity mobile joystick input doesn't react to touch

I created a 3D mobile project, so I used my own joystick script, I also tried joystick from asset store. The problem is that the stick image of joystick doesn't move at all, in this case it's ...
user avatar
  • 3
0 votes
0 answers
26 views

The performance gains of tiled rendering on mobile

I'm making an OpenGL es app on android and I'm trying to improve the performance of it. I found this technique called tiled rendering (not the same thing as tiled deffered rendering*) wich divides the ...
user avatar
  • 5
0 votes
0 answers
35 views

How can I reduce Unity file size? (for Mobile) [duplicate]

I looked at the file size of a project I completed for mobile platforms in Unity. The file is 1.26 GB, only the Assets file is 44.5 MB, only the library file is 1.21 GB. I want to downsize it by a ...
user avatar
  • 13
0 votes
1 answer
31 views

Use of CPU vs. GPU on mobile devices

I was always told that if a task can be parrarelized, I should put it on the GPU for better performance. Although this is defenetly true for computer GPUs, I was wondering if the mobile GPUs were so ...
user avatar
  • 5
2 votes
0 answers
104 views

Tilting device about one axis in any orientation using gyroscope sensor

I am developing a Unity game where I need to tilt an iOS device to steer a ship as it flies in a straight line. The steering should be consistently accurate in any orientation, e.g. if the player ...
user avatar
  • 33
0 votes
0 answers
43 views

Graphics/Mesh scale and anchor with different screen resolution

I wanted to ask if there is a recommended approach to designing graphics that adapt and anchor to the different resolutions/aspect ratios found on different mobile devices (especially considering the ...
user avatar
0 votes
0 answers
14 views

Why does my profiler show more CPU usage after setting Application.targetFrameRate? [duplicate]

I read optimization recommendations for mobile devices on a website. It was written that "targetFrameRate" would be good to stabilize at 60 on average. I wrote the following code in ...
user avatar
  • 13
0 votes
0 answers
26 views

Help creating 3d object view with Accelerometer in Unity?

Hi I would like to create a object view controlled by mobile accelerometer so it gives a AR impression like in this video: https://www.youtube.com/watch?v=5A8olJzeAYg. So this is what I tried so far. ...
user avatar
  • 127
0 votes
0 answers
43 views

How to continue playing music while mobile phone times out or goes to lockscreen?

Is there a way to keep my app/game running in background even when my screen times out and goes to the lock screen on mobile (specifically Android)? For my purposes, I prefer if it goes to the lock ...
user avatar
0 votes
0 answers
24 views

How to set boundary for 3D objects in Javascript

[EDIT] Found the answer, solution in comment I have this 3d first person game made with Js/css. I have to set boundaries or clipping to the map as the character moves around the 3d object, I only need ...
user avatar
0 votes
1 answer
53 views

How to stop Sprites from stretching on Mobile with different aspect ratio

On Unity 2020.3.24f1: I created a 2D Core Project and changed to build on any Android device. Added a simple 2D Circle Sprite to my Scene. The Problem: I want my Game to run in 9:16 aspect ratio all ...
user avatar
0 votes
0 answers
70 views

How to implement crowd movement in Unity without rigidbodies?

I am working on a mobile game where its core gameplay includes a bunch of objects (can exceed 100) walking around autonomously in an environment where they push each other and get pushed by other ...
user avatar
0 votes
0 answers
48 views

Why does the order of these two functions matter? If one goes first they both run. If they're reversed the second fails. Can't see why

I have developed a "Global" GameObject in Unity which loads on the first scene and then persists using the method described here: How to make a singleton "game manager" object/...
user avatar
  • 197
2 votes
3 answers
373 views

GM files in online mobile games: what type of GM file should I keep a local copy and how does it synchronize with server?

In mobile game development there are types of data that are not user save-data but are necessary for the game, we call it GM files. In my specific case, the GM files include text data such as "...
user avatar
  • 153
0 votes
1 answer
59 views

Improving performance of lighting on mobile

I'm trying to make a 3D game for mobile. When rendering a very simple scene, my performance drops from 60 fps to 30 fps when I use fragment shader lighting instead of vertex shader lighting. I really ...
user avatar
  • 5
2 votes
1 answer
529 views

How to play audio in Unity when a mobile game runs in the background or the screen is locked?

I am trying to make a 3D audio player with a retro cassette-like interface. The first thing is to make audio playable smartphone-wise, even when the game is in the background or when the screen is ...
user avatar
  • 145
0 votes
0 answers
28 views

What happens if i create google play console if i am under 18? [duplicate]

I want to publish my game on google play, but i am under 18. However i asked my parents if they would pay for google play console with their credit card and they agreed. My question is will google ...
user avatar
0 votes
0 answers
41 views

How to make a multiplayer game for multiple screen sizes?

I am making a 2d multiplayer game for Android, targeted to run on every device. How do I calculate the common position of an asset, independent of screen size? What size map should I assume is a ...
user avatar
1 vote
1 answer
243 views

How to re-render the scene only when something changes in Unity?

I am building a social/chat/dating app which I would like to build in Unity as I want some 3D graphics, geo-location functions, and possibly mini-games you can play together with others. From a ...
user avatar
  • 197
0 votes
0 answers
51 views

How can mobile games consume so little ram?

I got into mobile game development around a year ago, so I would consider myself still very much a beginner. Recently I started optimizing my game, so basically making the code cleaner and downscaling ...
user avatar
0 votes
0 answers
39 views

Add a virtual joystick to a top down 2D game that uses Input.GetAxis

I have a 2D top down game with a perfectly working movement system, however, I decided to switch to mobile, and faced a problem. I HAVE NO IDEA how to add add a Joystick (well, adding it is not that ...
user avatar
0 votes
1 answer
454 views

Why is my UI not working on android but works perfectly on PC?

I tested my game for the first time on mobile and the UI almost doesn't work. I use if(!EventSystem.current.IsPointerOverGameObject()) to check if I'm clicking on ...
user avatar
1 vote
1 answer
130 views

2D vs 3D mobile power consumption in Unity [closed]

For an optimised and playable game written for mobile with Unity, how much of a difference is there in power consumption between 2D and 3D? Assuming: Unity game engine The game requires constant ...
user avatar
  • 13
0 votes
2 answers
94 views

How to port/convert a Java program to mobile?

I have coded a simple video game in Java. It works fine on all computers that have Java installed. However, I would really like to play it on my smartphone and it would also be nice to be able to play ...
user avatar
0 votes
2 answers
78 views

How can I serialize lists to JSON on mobile?

I'm having difficulties serializing lists with the built in JsonUtility. I eventually figured out this just isn't possible with its limited capabilities. As much as I'd like to use Newtonsoft, I ...
user avatar
  • 125
0 votes
0 answers
17 views

Unity Mobile: How can we safely store our API key? [duplicate]

We're making an app in Unity. We're building it for Android and iOS. We also have a server. In order to use our server you need to present our api key for the server. So, we need to store that key in ...
user avatar
0 votes
1 answer
79 views

How can I implement an aiming system like the Tank Stars mobile game?

I have been trying to implement the same aiming system as in Tank Stars, but I got a little stuck. I implemented simple stick aiming, which basically aims towards the stick movement. In Tank Stars, ...
user avatar
  • 103
1 vote
0 answers
561 views

Orientation changed event in Unity3D?

I'd like to listen to orientation change events, so for example my UI layout or the components themselves can be changed. All I've found is that I should check the value of ...
user avatar
  • 626
0 votes
1 answer
58 views

Is it possible to clone a game, and make modifiactions to it?

I basically want to know whether or not it is possible to copy a mobile game and make it into a new game by modifying it . I want to be able to access , moderation tools and basically alter, things ...
user avatar
0 votes
1 answer
59 views

How can I add a button that opens a pop-up?

I have developed a game with a libGDX game engine. I want to create a button on the game screen and add a popup to this button. How can I do this? My current code: ...
user avatar
0 votes
1 answer
71 views

How to develop a GameMaker game for both desktop and mobile

For a few months I have been creating a game using GameMaker Studio 2 Desktop. It turns out that I would like to launch it also for cell phones, and for that I bought GameMaker Studio 2 Mobile. That's ...
user avatar
0 votes
0 answers
14 views

Using Mobile Accelerometer to trigger an action in my game unity

Hi I have this project I'm working on which is a bowling game controlled by mobile acceleration. I want the following: when the player holds the phone up facing him for 2 seconds to enter strike state....
user avatar
  • 21
0 votes
0 answers
22 views

How can I make responsive computer and touch click and drag?

This code works but it has a little delay on computer controls and higher delay on mobile touch screen controls, so its not responsive as I want it to be. ...
user avatar
0 votes
0 answers
27 views

Script not working (Function not changing value)

I have this script that I made for an FPS character. public class Player_Movement : MonoBehaviour { public CharacterController controller; public Transform camera; ...
user avatar
  • 462
3 votes
0 answers
32 views

Authentication and keeping track of users for a cross platform game (Steam+mobile)

I've got a question about authentication/user accounts. I'm building a game using Unity that'll be sold on Desktop (through Steam) and Mobile (Play/App Store). The game has online multiplayer ...
user avatar
-1 votes
2 answers
455 views

Why shouldn't I release my app to all countries? [closed]

When releasing a mobile app on iPhone and Android, you can specify which countries you want to release your app to. Intuitively, you may want to just release it to all countries. One example of why ...
user avatar
  • 5,161
0 votes
0 answers
193 views

How to move 3D Object With Touch Dragging Finger By the screen In android Unity Game

My Code is As Followed: ...
user avatar
2 votes
1 answer
146 views

Why does my game look different on my mobile device than in the editor?

I am new to Unreal Engine. My game in mobile looks totally different than in Unreal Engine editor. In Editor: In Mobile: Is this a symptom of something obvious? How can I make it so that what I'll see ...
user avatar
1 vote
0 answers
99 views

How can I support direct P2P for mobile devices?

I'm Interested in two or more player co-op in Godot, via direct P2P without connection to a central server. I have this idea that would utilize two smartphones in proximity to one another. I don't ...
user avatar
0 votes
2 answers
439 views

Default Game Window Size To Take While Making Games

I am planning to make a game for mobiles and tablets, I wanted to know what would be the default resolution that I should set for my game so that it covers all or most of the devices out there. I read ...
user avatar
  • 1
3 votes
1 answer
93 views

Tile map click to walk UX

My game is a top down mobile game where the player clicks a tile to walk to it. However, it isn't clear where tile boundaries are from just looking at a level, so you could click on the edge of a tile ...
user avatar
  • 1,106
0 votes
1 answer
73 views

How to make a countdown timer based on local time

I have a problem. In my GetTime.cs script, I am getting local time from an Android/iOS device, and simply assigning it to a Text component. ...
user avatar
16 votes
1 answer
3k views

How to file down a fingernail mesh?

I am creating a nail salon 3D game where I need to implement nail filing mechanics. I have tried out approaches including mesh deformation but I'm concerned about performance as I am targeting mobile ...
user avatar
1 vote
1 answer
34 views

Is it a useful strategy for Mobile VR titles to render faster than their simulation loop?

For example - If a title had a very heavy simulation loop (say 20ms), is it desirable to render at a greater rate, say 90hz? This would always a present head pose correct to the view, without being ...
user avatar
  • 712
0 votes
1 answer
168 views

Touch input not working well for mobile game made with Unity 2D

I made a simple game in unity where the user taps their phone screen and the player jumps up. When I test it on my phone (not sure if this matters but it's a Samsung s9+), I tap the screen and usually ...
user avatar
0 votes
1 answer
84 views

How does "internet connection required" protect from piracy on mobile phones?

Sometimes I can't play a paid Android platform game because it requires an internet connection, and I'm in a place where 3G doesn't work. Here is my understanding so far: The game is a "good old ...
user avatar
  • 101
0 votes
0 answers
27 views

Unity Optimization: Creating Multiple Similar Scenes Effectively

I've been working on a mobile game that uses the same framework for each level in the game, and I was wondering what would be the most efficient way to store all those levels in Unity. Should I only ...
user avatar
0 votes
0 answers
81 views

using Playerprefs on Android Mobile Platform

I have a question about playerprefs on my android mobile game not initializing properly. I have already pre-set my playerprefs data on a variable with a value of 3. In my play mode on unity the value ...
user avatar
0 votes
0 answers
233 views

Unity with move gameobject line renderer

I create DrawLine class, I want my character to follow the line I draw. How do I move my character on draw line renderer ? Thanks! ...
user avatar
0 votes
0 answers
47 views

How do I calculate sprites/frame usage on my platform's ram?

I plan on building a 2d game for mobile and possibly pc. I also plan on using sprites/frames for the animation of my 2d game. What's stopping me from doing so is because I can't figure out if the ...
user avatar

1
2 3 4 5
7