Adding dynamic content at runtime?
by Laurence Grant · in Torque Game Engine · 01/16/2007 (6:27 am) · 2 replies
I'm new to Torque, so I apologize if this is lame.
Playing around in the engine, it seems when placing content (the engine in editor mode) I'm still pretty much in the game engine. Therefore if I can place content programmatically instead of with the mouse (can I) then I can place content at run time, right? Others had commented there wouldn't be shadows for the new content, but there are those commands to recalculate the lighting, so couldn't I call them also? I realize there might be a delay but how long, a second or two, right (I guess depending on the complexity of the level), but if I have a way to cope with that in the context of the game, then I can in fact do it, right?
Thanks
Playing around in the engine, it seems when placing content (the engine in editor mode) I'm still pretty much in the game engine. Therefore if I can place content programmatically instead of with the mouse (can I) then I can place content at run time, right? Others had commented there wouldn't be shadows for the new content, but there are those commands to recalculate the lighting, so couldn't I call them also? I realize there might be a delay but how long, a second or two, right (I guess depending on the complexity of the level), but if I have a way to cope with that in the context of the game, then I can in fact do it, right?
Thanks
Torque Owner Stefan Lundmark
There will be a slight delay when relighting, but if your gameplay is made with that in mind then I see no issues with it.