Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [screen]

Usually a flat surface onto which information is visually presented. The screen of a computer is sometimes called a monitor.

0
votes
1answer
17 views

Not getting proper height in unity when android device has notch or navigation bar on screen

Screen.height is not giving the proper resolution of an Android device when that device has a notch or navigation bar. Due to this there is offset at bottom of ...
1
vote
1answer
42 views

Unity / How to access my screen pixels outside of unity?

I want to run unity in background and get the pixel colors of my screen. i didnt find anything on the assetstore or somewhere else that could make that possible. Texture.ReadPixels() also does only ...
0
votes
1answer
62 views

libgdx - creating static HUD/widgets on screen

I'm having problems with creating static HUD/buttons on the game screen. Currently my game has a character moving on the tiled map, with OrthographicCamera put on, everything works fine. I wanted to ...
1
vote
1answer
261 views

LibGDX Stage and Viewport management for Actors?

So I've done research about how to use Stage, Actor and Viewports etc. To optimize the game for most devices running Android. I'm pretty sure that the viewport is configured or the background image is ...
1
vote
1answer
73 views

How to create a split screen display with one frame and canvas

I am creating a 2D Java game, which looks like this: My question is what should I do to my display to create two 'separate' displays. I plan on doubling the height of the program, and have a second ...
0
votes
0answers
36 views

Capture Screen (from desktop) and make them to a Texture (in unity)

I need to capture certain screen coordinates (which are outside the unity application) and put them into unity as a texture or render texture or some kind of texture (as long as the shader takes it im ...
0
votes
1answer
182 views

Screen Capture rendered on a RenderTexture in Unity

I have a pretty wild idea for a unity application that would work on a multi-display setup. The app would be running in full screen mode on one of my displays, and the contents of the remaining two ...
0
votes
0answers
59 views

Why does my Phaser/Cordova app only work when it is 363 pixels or wider?

I'm running into a very strange issue in an HTML5 mobile game I'm developing using Phaser and Cordova. When I create a new Phaser.Game with a width of 363 pixels ...
0
votes
0answers
65 views

Unity UI scale mode only allow shrink?

I have a UI panel that is set to be responsive with screen size so it stretches horizontally and vertically depending on screen size. However I’d like it only to shrink horizontally and not stretch ...
1
vote
0answers
47 views

Android Game Screen Limits [closed]

I'm trying to do a game but I'm stuck. I have a player and I move it with the buttons but I can't make the player stop when it reachs the screen limits. What am I doing wrong? Main Activity: ...
1
vote
2answers
5k views

(Unity Android) How to force keep the aspect ratio and specific resolution without stretching the output screen view?

I'm using Screen.SetResolution() But when I run in Android device, it shows the output image is stretched to fill up the full screen which I don't want. I want it to keep the aspect ratio properly....
0
votes
0answers
29 views

How to get game orientation when Input.deviceOrientation is faceUp? [duplicate]

When a android device is running a game and is placed on a table the device orientation is DeviceOrientation.FaceUp. I have my screen orientation set to ...
0
votes
1answer
145 views

How to make the main menu screen fade out when the game starts in libGDX?

I am creating the main menu of my game, and I want the main menu screen to disappears with a fade out. I thought that if I used a Stage to make the menu and added ...
1
vote
1answer
47 views

mobile: Is every position in percentages when you support multiple screen sizes (different aspect ratios)?

Is every position in percentages when you support different aspect ratios? Or do you do if-else statements for each aspect ratio and put absolute positions? What are the pros and cons of each?
1
vote
0answers
54 views

How can I convey to a player that they need to hold the screen?

My game has similar mechanics as Flappy Bird game. When you tap or hold the screen with your finger, character goes up. Everybody who tested the game forgot to hold touching the screen, instead they ...
0
votes
1answer
6k views

Controlling screen and window size in Unity

In Java I know how to make a window of a certain size and make it not resizable. How do I control my game's window size in Unity and prevent players from resizing it?
3
votes
3answers
475 views

The proper name for a state, view, screen, etc

Most of my experience is in programming in HTML, JavaScript, etc. I'm taking on a relatively large project, and while I'm the only developer, I eventually want to open source my code for other ...
0
votes
1answer
74 views

How to make a death screen without making it a new state?

You must be confused by the question, let me explain. In some games, when you die, it shows a death screen but the background is sometimes transparent and shows the game play. how to do that. here are ...
0
votes
0answers
524 views

How to hide/enable buttons in a unity menu in a scalable manner

I am currently hiding/disabling buttons to navigate through "screens" in a unity game, with code similar to this within each onclick: ...
3
votes
3answers
2k views

Why is OpenGL point (0,0) not in top-left corner of the screen?

Most of computer graphics systems use screen's top-left corner as staring point, but OpenGL uses bottom-to-top direction, why?
0
votes
0answers
127 views

Unity Resolution

Why does my GUI appear shorter when in a 1366x600 resolution versus a 1366x768? To illustrate this, this is the ...
0
votes
1answer
268 views

Gamemaker display orientation detection

I am making a game that needs to detect when the device gets turned over in landscape mode to landscape-flipped to change some game mechanics when the player does so. The project is already set to ...
3
votes
1answer
608 views

LibGDX - FPS drops

I've been trying to record some gameplay footage of the game I'm currently working on, using the Android SDK and ADB to do it. Whilst the game runs at constant 60 fps in my medium-end phone, as soon ...
0
votes
1answer
974 views

How to split a screen in half using LibGDX without scaling?

I am currently working on a racing game with libGDX and I need to split the screen in half for a two-players mode. (Player 1 in first half and Player 2 in second half). I already have Camera1 that ...
1
vote
1answer
193 views

Switching Screens without initializing them every time

I have a UI with four Screens (all extending a "main Screen") that users switch between very frequently, at the moment I am switching Screens using ...
1
vote
1answer
211 views

Vertically mirroring the screen in LibGDX

I'm developing a game in which the screen layout is different for right and lefty players, so i'll put a button in it to mirror the screen vertically. For displaying textures and fonts, i use a ...
2
votes
2answers
3k views

Handling Back Button in Android without implementing InputProcessor

Please advice/clarifyon below issue in libgdx while handling back button in Screens. I have already gone through these 2 threads, https://stackoverflow.com/questions/7223723/in-libgdx-how-do-i-get-...
2
votes
1answer
269 views

Scalling down libgdx game to fit a smaller screen appears only the half of the stage?

Hello I have made a game in 1280x720, but I want it to fit devices with smaller size, so far no luck with the current code it only shows the left half of the screen, it also does not work with bigger ...
0
votes
2answers
553 views

Libgdx change to other screen and dispose current one

I am trying to switch to a GameScreen when the LinearVelocity of a Box2D - Object is x = 0. If it is so, I am using the setScreen() - Method by calling the main class. This works perfekt, but when ...
1
vote
0answers
52 views

How to use GetViewProjMatrix().TransformVector(LineDirection) in UE4?

I try to project a 3D vector (a direction, not a position) in screen space, but it does not return satisfying results: ...
1
vote
2answers
1k views

Section cut through (solid) geometry

I'm looking for image based (screen space) technique to render section cuts through arbitrary (solid) geometry. I found and studied image based CSG (Kirsch 05 / OpenCSG) but I found it to be perhaps a ...
0
votes
2answers
81 views

the half of the screen does not seem to work correctly

I am not such a professional coder but trying to code something on Unity. However, when I try to play the application in my android phone, the half of the screen does not seem to work correctly: Can ...
1
vote
0answers
47 views

SpriteKit Obj-C – How to add a force on a node a certain distance according to screen size

I have an SKSpriteNode that I'm trying to throw up to a certain point on the screen. I've tried applying an impulse and/or force according to the screen size, but that has strange results. I've also ...
1
vote
1answer
1k views

Switch beetween Screen on LibGdx application

i have set main class like this: ...
2
votes
1answer
723 views

Unity2D 5 - Flickering sprites on Android

So the game had been working fine for a few days on Android phone without any issues. Today, after adding some scripts and tweaking the game a little bit (tweaks which have nothing to do with the ...
4
votes
1answer
244 views

Rotate perspective camera to align screen width to procedural object's width (Unity, C#)

I give up. After much trying and searching, I have to say I was unable to achieve the following task, for which I must call for your wise advice. In my current Unity 5 application (using C#), there ...
5
votes
2answers
452 views

How far back should I move my camera to fit a given GameObject in frame?

In Unity with C#, I want to calculate the minimum distance that my perspective camera has to be from a given GameObject (a procedurally generated mesh), so that the object is fully framed by the ...
1
vote
2answers
503 views

How to stretch screen image to fit higher res monitors set to lower resolutions with Unity?

Using Screen.SetResolution(width, height, windowMode); , how might I stretch the image to match the monitor size? I've noticed this problem occurs both with this ...
0
votes
1answer
160 views

Error when initializing Stage

I made a new class that implements Screen, what I've seen from other people's code is that they create a constructor that takes a parameter of Game game. I did not created a constructor, I think that'...
0
votes
1answer
1k views

Screen management: How to switch between screens

How can I switch between different screens that implement Screen?
0
votes
1answer
134 views

Direct3D - Get screen coordinates for printing multiple text elements

I have a function that I use to print text PrintText(char* text) that stores the text to a vector, which is then displayed if the vector is not empty. I'm trying to ...
1
vote
1answer
6k views

How to do pixel perfect movement with Unity3D?

How would you be able to make sprites move pixel by pixel in Unity3D? I've tried the following things. int x = (int) transform.position.x; ...
0
votes
1answer
4k views

What screen resolution do I make an android game in? [duplicate]

Is it safe to assume that most mobile phones and tablets today have moved to 1280x720 resolution and above and make the games in that resolution, scale down for smaller screens or is a smaller ...
-1
votes
1answer
776 views

Libgdx detect touch on a specific object (while moving) [closed]

I have a class (I'll call it with letter "A") and class B. A is the object (as a character) and B is the rendering class which have the aim to show A. I am looking for a way to detect when A is ...
0
votes
1answer
523 views

Relationship between Camera's view size, screen resolution and objects scale

I've had this question since a long time ago and wanted to know the relationship between how an object is viewed through the camera depending on the resolution of the device, the camera's view size ...
6
votes
3answers
2k views

Different Screen Sizes and Camera in Unity

Now I know that no matter what the screen size is the camera will keep its height, so no worries about that. My question is, is there a way to manipulate the camera, either its orthographic size, or ...
1
vote
1answer
574 views

How can I manually syncronize render calls with a monitor's refresh rate in Direct3D 9?

I have an application that utilizes Direct3D 9 to render 3D graphics. I'm trying to manually control the number of frames rendered in a given second. Here is pseudocode: ...
1
vote
2answers
771 views

How can I run a Unity game in a window larger than the desktop resolution?

I am exploring a research problem using Unity. I require a game resolution of at least 4096 x 786. There seems to be no option under build settings for setting a fixed screen size window. (The default ...
2
votes
3answers
10k views

Libgdx getting screen size

I'm working on libgdx project. I basically recreate my game which I coded in xna to make it available for android. Here's the problem android has many screen resolutions, and I want to know how to get ...
0
votes
1answer
56 views

Out of screen position to inner screen position

I don't know how I could solve this. I'm trying to accomplish this: So if a object is out of my screen I would like to calculate the position it would be inside of the screen. Searched already but ...