-
|
Is there a way to keep entity on the screen always? Say, I have complex space background (stars, dust, couple of planets) and want to display it through the whole game. Partial solution is: // this = Engine instance
this.events.on('navigationend', ({destinationName}) => {
this.director.getSceneInstance(destinationName)?.add(backgroundEntity);
});but it breaks when I adding loaders. Event if loader not drawing anyshing itself, background disappears. I know I can redeclare |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
@keasy9 It should be possible to have entities live in multiple scenes at once (although buyer beware on that one... ex wasn't really designed with that in mind) you can also transfer entities between scenes with the Using the built in Loaders might be an issue since they take total control of the screen with a 2D canvas. You might be able to make a pseudo loader as an entity, that loads things async and continues to render the current scene. You can always call the I do think it's a good feature to allow loaders to be more sophisticated like they are a scene, let me noodle on the best way. I think @kamranayub suggested something like this in the past. I'd support a feature like this. Also apologies, I'm catching up after a wild couple months here in Minnesota. |
Beta Was this translation helpful? Give feedback.
@keasy9 It should be possible to have entities live in multiple scenes at once (although buyer beware on that one... ex wasn't really designed with that in mind) you can also transfer entities between scenes with the
scene.transfer(entity).Using the built in Loaders might be an issue since they take total control of the screen with a 2D canvas. You might be able to make a pseudo loader as an entity, that loads things async and continues to render the current scene. You can always call the
.load()method on loadables to trigger their download/load.I do think it's a good feature to allow loaders to be more sophisticated like they are a scene, let me noodle on the best way. I think @kamran…