I decided to turn to the wise ones once again, because I’m struggling with something that would be essential (for me) to know how to do.
I have 2 scenes in the same .blend file. Main and DialogScene. Blender version 2.71
1 - I’m trying to get a text object called “dialog” and it’s string property “Text” into pythonm so that I can set the “Text” property from the main scens (depending on what happends in main scene, the text willchange). I want to set the property of the text-bar in the main scene, but since the object is in a different scene.
I’ve tried (after looking on the internet):
scenes = bge.logic.getSceneList()
my_scene = [scene for scene in scenes if scene.name == “DialogScene”]
object = my_scene.objects[‘dialog’]
object [‘Text’] = “INSERT DiALOG TEXT HERE”
It returns an error. So please if anyone has 2 minutes to help me out with how I can control this dialog object and it’s property in the main scene, I’d be ever so grateful.
Thank you very much in advance! :eyebrowlift:
2 - This is just a little question - I don’t necessarely want explanation just pretty much a yes/no answer will do.
Is it possible to control animations in an overlay scene? (e.g. ScreenFader - plane in fron to famera - black texture - alpha from 1 - 0 fades in, 0 - 1 fades out. Like, get frame number, set frame number, play, stop, that sort of thing? (without using actuators) - OR - if actuators onlyif I can control it from the main scene’s script.
I want to have a screenfader on an overlay scene as the project I’m working on includes fixed camera setup. Camera’s change depending on where player is, and it’d be a pain to parent the plane the fader animation is on to each and every camerain the scene and so on. It’d be easier to have it overlay everithing.
But again, this is a secondary thing so most importantly, I want the dialog system implemented first.