Game Development Community

Launching Torque 2D from 3D; reading XML data

by Brad Strong · in Torque Game Engine · 03/21/2005 (9:55 am) · 2 replies

Hi,

I'm currently moving through the tutorials as a recent convert from Director / Lingo to Torque. I'm creating learning games.

Does anyone know how to call torque 2d from torque 3d? I'd like to go to 2d from time to time and read XML data off the user's machine. Then go back to torque 3d and continue the immersive game experience.

To me this would allow greater flexibility as I can simply change the XML contents and give a different experience to the player.

I did a search on xml on the forums and came up empty.

I did find an Export command in the c scripting notes, but no 'open file' or 'import' commands.

Thanks for any help -

#1
03/21/2005 (10:36 am)
I've slowly been working on a tourqescript Database... I have it exporting to a XML similar format and importing it back into engine into a database system... the format I made was similar to XML, so if you wanted code to start you in parsing an XML document ( as well as a database to load it into ) I'd be happy to provide it or help you with getting started... I might considering changing my format to XML, though unsure if I have the time to do so...

(I planned on releasing the resource soon anyways)
#2
03/21/2005 (11:22 am)
I would love to see it, King Bob! Thanks for the help.

bstrong@imagi.net