Questions tagged [scene]

This tag should be used for questions on the management of scenes (in the game engine) , across any platform. Note that the tag of the platform you are using needs to be added also.

Filter by
Sorted by
Tagged with
15
votes
3answers
2k views

What caused “falling out of the world” and what fixed it?

A lot of early 3D games had the problem where you'd be trundling merrily along and suddenly everything was black, with an island of what looked like the hollow facade shell of the scene you'd been ...
12
votes
2answers
2k views

How can I visually see changes made to a scene since the last git commit

I'd like to see the changes made in a scene (.unity file) before I commit them to git. I have looked into several GIT/Unity solutions but all of them are made for merging changes and not for showing ...
8
votes
0answers
409 views

Implementing a SceneManager using OpenFL

I'm trying to implement a basic SceneManager using OpenFL and Haxe. I don't have a lot of experience using OpenFL and Haxe so I have a few problems. Here is how I designed the SceneManager class: <...
7
votes
3answers
6k views

What's a good entity hierarchy for a 2D game?

I'm in the process of building a new 2D game out of some code I wrote a while ago. The object hierarchy for entities is like this: Scene (e.g. ...
6
votes
3answers
3k views

Scene transitions

It's my first time working with actual scenes/states, aka DrawableGameComponents, which work separate from one another. I'm now wondering what's the best way to make transitions between them, and how ...
6
votes
1answer
1k views

How to generate portal zones?

I'm developing a portal-based scene manager. Basically all it does is to check the portals against the camera frustum, and render their associated portal zones accordingly. Is there any way my editor ...
5
votes
1answer
721 views

Concept of “scene” in Godot, misunderstanding

Could anyone clarify a beginner's question in Godot? As in this 3D video tutorial (https://www.youtube.com/watch?v=-D-IcbsdT04), the guy creates one scene for the floor, another scene for the wall, ...
5
votes
1answer
4k views

Unity scene performance - better to use one scene and toggle what is active?

Unity scene performance questions In Unity, were one to have a scene that is basically identical in all but a few ways, would it be better to keep them as separate scenes, or to have them be one ...
5
votes
1answer
5k views

Scene Graphs and Entity Component Systems

I am trying to determine how to move my current implementation of nodes in a scene graph to an entity component system and am struggling to wrap my head around how the two can work together, if at all....
3
votes
4answers
5k views

Fast zoom in and out in Unity Editor

Is it possible to zoom out and zoom in in Unity Editor in Scene View faster than just with the help of scroll wheel on the mouse? I hope there are exist some shortcut for that. Am I right?
3
votes
3answers
2k views

Integrating Scene Graphs and Physics Engines

For some specific reasons, i will have to use a graphic engine based on Scene Graphics with a Physic Engine without this concept. I was thinking about a clear way to integrate both representation but ....
3
votes
2answers
3k views

Create Adventure Game Scene/Room/Backdrop from Real Photo

Is there a suitable software or a good tutorial for creating 2D rooms/scenery for adventure games from real photos? Is it possible to achieve good results by using photos, or the hand-drawn style ...
3
votes
1answer
142 views

Help understanding camera/scene Unity

I'm a brand new unity developer and I watched a few tutorials and then found a game on the Asset Store to provide a nice base for my game. However the setup, especially with multiple scenes is quite ...
3
votes
2answers
1k views

Load scene without being in build settings and without using AssetBundle

This is the closest I've gotten: ...
3
votes
4answers
3k views

Get all objects of Additively loaded Scene? (LoadSceneMode.Additive)

I learned how to Load and unload scenes in unity. using LoadSceneMode.Additive. I like to spit up my scenes as much as possible and retain the stuff I need as I go along. I'd like to be able to find ...
3
votes
2answers
393 views

What is the Basic Game Screen/Scene Life Cycle?

Question What is the standard or basic game screen/scene life cycle used in most games? What is Screen/Scene? The term screen or scene refers to the current displayed entity holder where game ...
3
votes
2answers
746 views

Unity Change Sceneview to camera view

On selecting camera, I get the camera preview. In Unity, while editing the scene, I wish to switch in such a perspective view that is exactly visible by the main camera. Is there a short cut to ...
3
votes
1answer
260 views

Is there a standard camera position / orientation?

I've come across a need to position a camera for an arbitrary (unknown) scene. The camera can be updated later, but I thought I'd give it a reasonable default, and the thought crossed my mind that ...
3
votes
2answers
802 views

GODOT Change scene in node

I will change a scene on button click. But not change the main scene with button. Node structure: main - scene (with childs) - button button.gd: ...
3
votes
1answer
2k views

Respawn not working properly upon scene reload. Why is this?

So I made a respawn function and what is supposed to happen is the script it supposed to load a saved checkpoint. However I need to reset the scene (and again this worked just fine last night which ...
3
votes
1answer
727 views

How to make party members appear and move to begin a conversation scene?

A common conversation starting trope in JRPGs, when the party is represented as a single character, is for the characters to come out of the player's position and begin talking with each other and the ...
3
votes
0answers
92 views

Revert a GameObject to a previous version

Is there a way to use an old version of a scene.unity file to revert changes for specific GameObjects only? Occasionally Unity GameObjects can lose all their references in the Inspector (If a prefab ...
3
votes
0answers
383 views

What is the optimal scene size?

I'm coding a small "Binding of Isaac"-like game, with a little help from the official "Scavengers" Unity tutorial, since it's my first game. In the tutorial every level is ...
2
votes
2answers
3k views

NPC daily routines and scene loading

I'm making a basic survival RPG in Unity 3d. I'm separating my world into different scenes to save memory but I'm not sure how I'm going to program NPC daily routines. For example, if the player ...
2
votes
2answers
280 views

State propagation in modern OpenGL

When last I dabbled in game development, I managed my geometry in a tree. Every node would call the render method on it's children, prior to resetting it's transformations, thus allowing the ...
2
votes
1answer
2k views

Game states & passing data between scenes

I'm not entirely sure if I'm doing this right, but I always considered the scene system in Unity as some sort of state management (rather than e.g. a level system) which allows to group the contents (...
2
votes
1answer
4k views

Load previous (last) scene used in unity3d

Im making a 2D game for android and I made over 200 levels/scenes.I also made a game over scene that opens when the players collides with an obscale.In the GameOver scene I added a retry button which ...
2
votes
1answer
333 views

Preload multiple scenes at the same time and activate them on demand in Unity. [Unity, async, simultaneous]

Preload scene in unity - this question tells us about how we can pre-load a scene in Unity and load it on demand. What it doesn't tell us - how do we pre-load multiple scenes at the same time and also ...
2
votes
1answer
81 views

How can I change view to orthographic using a menu?

I'm writing the custom menu using MenuItem and I'm stuck trying to make scene view orthographic when 5 is pressed. What is the ...
2
votes
1answer
2k views

Showing Parallax entity and AutoParallax entity on same scene in AndEngine

How do I create both a parallax background and an autoparallax background in the same scene using andengine? The problem is, I want one entity to move at a constant speed regardless of the camera's ...
1
vote
1answer
469 views

How to design the scenarios in a platform game?

I am developing a 3D platform game like Metroid Fusion with XNA. I have many classes for different elements as models, game screens, post-processing and so on. Now I want to start designing the ...
1
vote
1answer
47 views

Timer breaks after changing scenes

I am using this script below to move an animation in unity with no root-motion. It simply walks across the terrain. I have timer attached also so the animation doesn't start to walk for 60 seconds. ...
1
vote
3answers
520 views

Unity: how do I edit a second scene when my objects are still in the first?

I have my game set up so that objects like the Canvas and the main character are set to DontDestroyOnLoad; they're only ...
1
vote
1answer
389 views

Creating big scene and little size chasing camera

I would like to create a climb based game, so I need to have a big scene and a camera that cover only a little part of it and chase my player. This image explains easier what I want: How can I do it? ...
1
vote
1answer
390 views

Cost of changing scene in andengine

I'm working on a simple 2d puzzle with small textures (in count and quantity). Now after I finished the game logic I'm considering tow options to switch between levels: Remove all objects manually ...
1
vote
1answer
3k views

Problem switching Scenes in AndEngine [closed]

I am Developing a game in AndEngine Gles2. I have splash scene, loading scene, menu scene and Level1 scene. I am using a Screen Manager to manage all scenes so I can easily switch between splash, ...
1
vote
1answer
678 views

How can I take screenshots with two cameras simultaneously in Unity?

I am trying to capture different parts of a scene created in Unity. I have two cameras capturing different parts of the scene. Now, I need to take screenshots using these two cameras simultaneously. ...
1
vote
1answer
1k views

Unity SceneView Positionning object with mouse position in Editor script

I would like to create an editor tool who can change the position of an object in the scene view into other object in the world, based on mouse position, like in the picture bellow (the red pyramid is ...
1
vote
1answer
1k views

Keep the timer counting after changing scenes

In my game you have 2 minutes to finish the whole game and after searching for an answer to my problem I think I should use DontDestroyOnLoad but I can't understand ...
1
vote
1answer
121 views

Is it ok to use polymorphism as a way of “interfacing” with objects in a scene? [closed]

I'm designing a class that holds values representing a 3D scene. This includes lights, cameras, meshes, materials, etc. The way how I'm setting it up is that each "thing" has a name. A camera has a ...
1
vote
1answer
2k views

Saving an interface instance into a Bundle

All I've have an interface that allows me to switch between different scenes in my Android game. When the home key is pressed, I am saving all of my states (score, sprite positions etc) into a Bundle....
1
vote
1answer
469 views

How do you script movement of two or more characters at the same time?

Its not quite clear how to move 2 characters at the same time from and to fixed positions. Within the tutorials for RPG Maker MV users are shown how to script the movement of single characters at a ...
1
vote
2answers
91 views

Loading scene doesn't reactivate gameobjects

I have some levels and a main menu. When starting the game from the main menu (in the editor debug mode) I can select a level a load it, no problem. However, when I wish to go back to the main menu ...
1
vote
3answers
149 views

Count the number of on-screen pixels occupied by an object

I need to find the number of pixels an object occupies on screen. How do I do that using DirectX?
1
vote
1answer
2k views

SceneManager.LoadScene doesn't seem to be working in Unity IDE

I'm in the start screen scene of my game and I'm trying to load the actual game. I use the following code: ...
1
vote
1answer
473 views

Importing levels at runtime

I know that the Unity editor can import/export packages which could contains Scenes (levels), but is it possible to import a Scene into a game at runtime without the Unity Editor? What I am trying to ...
1
vote
1answer
1k views

How to create UI with multiple panels for multiple resolutions

I am trying to create scene that has multiple panels, but only one is visible. When user clicks on appropriate button a transition is happening: camera moves to the right revealing panel on the right ...
1
vote
2answers
695 views

Unity: How to keep the music muted on reloading the scene?

I am giving the user a UI button to mute and unmute the ingame sounds but the problem is when I mute the sounds and then when the game ends and the game scene reloads the sounds comes back up which is ...
1
vote
1answer
2k views

Unity3d seamless level loading

I've read that application.loadLeveAdditiveAsync is a pro only feature. I'm looking for an asset that can do something similar. I would like to load assets based on the camera/player position. Ideally,...
1
vote
1answer
198 views

Level loading philosophy in MMO games

I've been working on project for quite a while, and I've returned to dilemma about level loading. The problem is i trust the client with it's local level loading, when it's done loading it tells the ...