Questions tagged [scene]

'scene' can refer to various things. Please combine this tag with other tags to put your question into perspective.

The Scene class is the container for all content in a scene graph.

Within Scenes represent game levels and screens, which are loaded one at a time according to the game mechanics. The scene is a key element in Unity editor and contains the , assets and other game elements.

996 questions
7
votes
1 answer

Method for loading a SKScene from a file without calling the init(fileNamed:"")

As title says, is there any method that I can call to load a SKScene from a file (.SKS) without calling the init(fileNamed: "...") method?
Alec Firtulescu
  • 543
  • 6
  • 18
7
votes
3 answers

Switching scene in javaFX

I have problem when trying to close current scene and open up another scene when menuItem is selected. My main stage is coded as below: public void start(Stage primaryStage) throws Exception { primaryStage.setTitle("Shop Management"); Pane…
user2424370
7
votes
3 answers

how can one detect a finished resizing operation in JavaFX?

I have a stage, a scene and a WebView node. When I expand the window to a larger size - things get pretty sluggish due to WebView. What I want to do is fill the new space for WebView only when the resizing of the window has been finished (this is me…
XXL
  • 1,224
  • 4
  • 12
  • 25
6
votes
1 answer

how snapshot the entire scene in javafx?

have this fully working code but i don't know how snapshot the entire scene in JAVAFX as PNG format ? i try to export pie Chart as snapshot it work but i couldn't figure how to add another chart to be snapshot also . this is my code package…
mdsavs
  • 73
  • 1
  • 7
6
votes
2 answers

JavaFX change the image in an imageView

Basically I have a method to load an Image from database into an imageView and a second method to change the image I'm sucessfully running both methods without getting an exception but after the setImage in changeImage() method what do I need to…
Kylar Stern
  • 77
  • 1
  • 2
  • 8
6
votes
1 answer

Delphi GLScene export scene as stl

I have a GLScene project. In the SceneViewer I import some stl files as freeform. The user can interact with this objects (move and rotate them with mouse). Now I have to export this whole Scene to one stl file, so the position and the rotation of…
user1116033
  • 474
  • 5
  • 9
5
votes
2 answers

JavaFX Scene loses color when a button is created

Can anyone explain why my scene loses color the moment I create a button in JavaFX? The following code works, with the background of the scene changing to red @Override public void start(Stage primaryStage){ //Set Primary stage title and create…
5
votes
3 answers

Swift, SpriteKit: how to save the whole progress of a scene

I have build a swift game with a "GameViewController.swift" import UIKit import SpriteKit class GameViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() if let scene = GameScene(fileNamed:"GameScene") { …
frankibanki
  • 115
  • 6
5
votes
1 answer

specifying scene's background color in SceneKit

I'm trying to specify a background color (which is currently black) of a screen just before the scene appears. I searched documentation and this is what I found: var background: SCNMaterialProperty { get } A background to be rendered before the…
potato
  • 4,479
  • 7
  • 42
  • 99
5
votes
1 answer

Swift : Updated Variable in a different scene

I've got a variable in my GameScene, it's score variable, and it's being displayed on screen with SKLabelNode. Everytime time there is a collision, 1 is being added to score, which is being transfered as a string to the SKLabelNode, and then…
Betkowski
  • 491
  • 1
  • 4
  • 17
5
votes
3 answers

Make Rectangle transparent

I need to make a drawn rectangle mouse transparent, in order to see the desktop. The following code draws my rectangle. What should I add to get that ? Thanks for help public void start(Stage primaryStage) { Group group = new Group(); …
Stéphane GROSSMANN
  • 369
  • 2
  • 5
  • 14
5
votes
2 answers

Scrolling a childscene in AndEngine

I have a problem scrolling my childscene. I have created a CameraScene which i am trying to scroll with a touch event. My childscene is not scrolling, however, if i scroll on the camera attached to the engine the parent scene scrolls fine. So how do…
Flexo
  • 2,506
  • 3
  • 21
  • 32
5
votes
2 answers

How to create a .mesh file with OGRE?

I'm relatively new to OGRE graphics engine, so my question may seem too obvious, but searching for relevant information was not successful. Given: I have an OGRE application with a scene created of some meshes, lights, cameras and textures. It is…
Nikolay Rys
  • 137
  • 2
  • 9
5
votes
2 answers

Add background to Andengine scene Android

I wanna set My Scene Background but I don't know how! I had read a lot about this, but I can't make this works. Is my start with Andengine, and is hard found precise information for my problem, all is subjective. Well, I have implemented the splash…
Genaut
  • 1,810
  • 2
  • 29
  • 60
4
votes
1 answer

Save game state after pause. AndEngine

i've found that after resuming the game all the engine is reloaded and application is reinitialized. I want to save engine state and in "onResume" resume the game proccess. I've tried to save all the engine (mEngine) and then after resume the game…
dilix
  • 3,761
  • 3
  • 31
  • 55
1 2
3
66 67