Game Development Community

What is the proper file path for the level

by J Sears · in Torque Game Builder · 05/08/2007 (8:04 pm) · 2 replies

I haven't set up my project as a stand alone yet but I was trying to test out my main menu system which launches the level when you click on the right button and I can't seem to get the file path correct. How far out do you have to take it? I tried MyGame/data/levels/mylevel.t2d and then took it out even further with TorqueGameBuilder/games/MyGame/........ am I doing something wrong with how I'm approaching it or do I have to go a different path?

I'm putting it all in like this startGame("thelevelpathabovehere"); inside another function and I know that function is working because inside startgame I change the gui and that part works I just can't get the level to load this way.

#1
05/09/2007 (1:02 pm)
Try "~/data/levels/mylevel.t2d"
#2
05/09/2007 (9:09 pm)
Well stupid me it looks like when I changed my gui button to a function that would then launch startgame from launching startgame directly it didn't save right and I must have been too tired to figure that out the other night, but it turned out that the first one of MyGame/data/levels/mylevel.t2d was the right way to do it