Scene.add( %object ); from another called module
by Gigas · in Torque 2D Beginner · 02/25/2013 (8:36 pm) · 2 replies
I am clearly missing a basic step or not understanding scene and window.
In my first loaded module with ModuleDatabase.loadExplicit(); I can create the window and a scene and add objects to this scene.
When I create a new module and load it with ModuleDatabase.loadExplicit(); I can run scripts and code but cannot add anything to the previous created scene.
Creating scene or window in the new module only causes errors with creating a scene or window stating one or the other is missing.
What I would like to know is what is the proper use of scene and how do create objects to a previous module scene or is there a better way of doing this?
If I am not using the sandbox; should I use the module system or just do everything in one module?
Any reference to scene and using it would be helpful. Thank you.
In my first loaded module with ModuleDatabase.loadExplicit(); I can create the window and a scene and add objects to this scene.
When I create a new module and load it with ModuleDatabase.loadExplicit(); I can run scripts and code but cannot add anything to the previous created scene.
Creating scene or window in the new module only causes errors with creating a scene or window stating one or the other is missing.
What I would like to know is what is the proper use of scene and how do create objects to a previous module scene or is there a better way of doing this?
If I am not using the sandbox; should I use the module system or just do everything in one module?
Any reference to scene and using it would be helpful. Thank you.
#2
Thank you for your time to respond.
02/26/2013 (7:47 pm)
After working on another project in T2D and coming back to this issue, it seems to have fixed itself. I cannot say how much of a great feature that is of T2D.Thank you for your time to respond.
Employee Michael Perry
ZombieShortbus