Game Development Community

Paths in Torqe

by Matt Veenstra · in Torque Game Builder · 01/25/2006 (7:33 am) · 2 replies

Hello guys,

This has never been clear to me and I always seem to not find a file.

"~/mygame/something/myimage"

This will start looking from the location of the executable?

"./images/myimage"

This will start looking from the location of the script it exists in?

Should I ever use any other references? I assume I can go up a directory with "../"?

Thanks again,
Matt Veenstra

#1
01/25/2006 (7:57 am)
I believe the tilde (~) is the root of your directory where the t2d.exe is located.
#2
01/26/2006 (4:13 am)
I've tried "../". It goes up as you expected.